.

Confluence User - 12 Jan, 2018

Hi All,

I am using Joget v5.0 and have a form with validations on many form fields using Default validators of the text fields. The validation errors are seen correctly on the form.

When I click the submit button I show a message to user "Request is successfully submitted. Please wait for email confirmation" using below javascript :

$("form#ClaimForm").submit(function(e){

alert ("Request is successfully submitted. Please wait for email confirmation");

});

Problem :

The above alert is seen even when there are validation error on form fields.

When error occurs then actually my request is not submitted and I should not show above message.

I can't do validation check again in javascript as there are many complex validations on many fields.

Question:

How to suppress the alert message when validation error occurs in Joget v5.0 ?.

 

forms;validation;server;datalists;userviews;user

2


15 Jan, 2018
confluenceUser
confluenceUser

In the Userview menu that you are using, for example, Form, you can configure your message at "Message Shown After Form Submission" instead of you writing custom script.

15 Jan, 2018
confluenceUser
confluenceUser

In the userview I am using the 'Run Process' option to show form which launches the form and executes tools which run one after another. Hence I do not have the option to display message on firm submit.

 

In userview if I use the Form menu option then I am unable to run the process on form submit to execute the tools

So I'm trying to figure out if this can be done through javascript.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print