Global submission constraints

  Written by The Jahia Team
 
Marketers
   Estimated reading time:

Form Factory 2.1 allows you to specify submission window, limit the number of submissions and prevent user from submitting the same form twice.

1 Submission Window


To enable submission window on a form go to metadata panel and select “Global Submission”, then toggle on Configure Submission Deadline.

 

Screen Shot 2017-04-12 at 9.37.13 AM.png

 

In the panel you can specify start and end dates, messages that the user will see if the current time is not in the specified time frame and the timezone.

 

2 Limit Number of Submissions


By toggling on the Configure Submission Limit switch you can specify how many submissions you expect for this form. I also need to specify the message that the user will receive when the form can no longer be submitted.

 

Screen Shot 2017-04-12 at 9.41.50 AM.png

3 Prevent Duplicate Submission


You can prevent duplicate submissions by toggling on the Remember User switch and specify the message that the user will see if he/she tries to submit the same form multiple times.

 

Screen Shot 2017-04-12 at 9.43.52 AM.png

 

Please keep in mind that if the user is guest we will store a cookie to remember that the form has been submitted and as a consequence it will affect all guest users coming from the same browser.

 

4 Global Submission Message


In Form Factory 2.1 you can now specify a global submission message per instance of the form which will override the one defined in metadata or Global Submission constraints. You can do so when you place your form on the page.

 

Screen Shot 2017-04-12 at 9.56.57 AM.png


You can create any kind of text, add links and images. You can also ask for values from the submitted form by using the double curly brace markup.


{{firstName:default=Mr/Ms}}


In this example the value of firstName field will be injected or Mr/Ms if the value is missing. You can also work with a simplified form which will not inject anything if the value is missing.


{{firstName}}