How can I prepopulate a field based on submission date?

  • Profile Image
    Asked on July 19, 2021 at 11:59 AM

    I would like to set up a condition for my notification email to say during which monthly quarter the form was submitted.

    Ex: If a form was submitted in June I would like the notification email to say "This form was submitted during the second monthly quarter"

  • Profile Image
    Answered on July 19, 2021 at 06:18 PM

    You can do that by using a Date field, Form Calculation widget, and a few conditions. Here's how:

    1.) Add a date field into the form, set it to capture the current date, and hide or set it as read-only:


    2.) Next, add a form calculation widget into the form and set it up like this:


    You can also hide this field so your users won't see it when they fill out the form.

    3.) Add a Short Text field. We will need it for the description.

    4.) Then add the conditions to pre-populate the Short Text field with data based on the result of the form calculation widget.

    For example, if the widget's result contains "Jan" or "Feb" or "Mar", then insert "First Quarter" into the Short Text field:


    5.) And lastly, edit your email notification and use the value of the Short Text field in the Email Subject:


    And that's it! Here's the demo form: