Written by The Jahia Team
 
Marketers
   Estimated reading time:

In Forms, you can specify a submission window, limit the number of submissions and prevent user from submitting the same form twice.

Configuring global form submission settings

To configure global form submission settings:

  1. Navigate to Forms>Create and modify forms>Forms library.
    global-form-submission-home.png
  2. In Forms, select Choose actions>Edit meta-data for the form that you want to edit.
  3. Select the Global Submission tab.
  4. To specify a submission window on a form:
    1. Toggle on Configure Submission Start and/or End Time(s).
      forms-submission-enabled.png
    2. Specify start and end dates within which the form can be submitted, messages that the user will see if the current time is outside of the submission time frame, and the timezone.
  5. To limit the number of form submissions, toggle on Configure Submission Limit. Then, specify the maximum number of submissions the form and the message that users receive when a form can no longer be submitted.
    forms-submission-limit.png
  6. To preventing duplicate submissions, toggle on Remember User and specify the message that users will see they try to submit the same form multiple times.
    forms-submission-duplicates.png

    Note that if the user is guest, Jahia stores 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.

Specifying a global submission message

In Forms, you can 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}}