Hiding a field after a certain date.

  • sctp
    Asked on August 8, 2016 at 7:12 PM

    I have a dinner reservation form that we use for online reservations. When they sign up and pay for the dinner meeting, members are $35.00, non members are $40.00 and it is $40.00 for all after the Friday prior to the dinner meeting. I can not find how to hide the field and this week I just had to delete it. Next week I will add it back in so they can register for the September meeting. Here is the link to the form. https://form.jotform.com/jsform/61646978137166

    Is there any coding I can use to hide the field starting on a certain date so I don't have to manually remove the field and then re-create the field?

    Thank you,

    Deb Miller

     

  • Chriistian Jotform Support
    Replied on August 8, 2016 at 9:58 PM

    May I ask which field do you want to hide after a certain date? If you are referring to the products in the payment field, then unfortunately it is not possible to hide them with conditions.

    A possible workaround I can suggest would be to have two versions of the payment field. One version has the products priced at $35 and $40, while the other payment field has all the products priced at $40. To have two payment fields in one form, please follow this guide: How to Create a Basic Multiple Payment form.

    Then to show the correct version based on the date, simply add a date field in your form and set the default date to Current.

    Hiding a field after a certain date Screenshot 30

    Use the Show/Hide Condition to show the field if the date field is after the set value.

    Hiding a field after a certain date Screenshot 41

    Here's a sample form that you can see in action: https://form.jotform.com/62208460662958 
    You can clone it to your account to view how I set it up.
    Regards.