How can I prevent users from modifying a field?

  • grrguitar98
    Asked on February 22, 2017 at 2:15 PM

    I have a form question asking a child's grade: K-5th.

    Later on in the form, I have a security tag option: Red or Green. The Red tag description says that it is mandatory for Kindergarten and I have made the red option the default. I have some parents manually changing that option to Green even though they selected their child is in Kindergarten.

    Is there a way to force the Red option if they selected Kindergarten earlier in the form so they cannot select Green? If I hide the Red or Green question, then I'm assuming it won't be filled out on the form for a print-off of that child, which I need.

  • Support_Management Jotform Support
    Replied on February 22, 2017 at 4:36 PM

    You may set the field as READ-ONLY so users/respondents can't interact with it. A read-only field should still be targeted conditionally.

    So, if you already have the condition in place and it's working, just click the field you want to restrict on your form > GEAR icon > ADVANCED tab > toggle READ-ONLY to ON.

    How can I prevent users from modifying a field? Image 1 Screenshot 20

    In case we misunderstood your question, just get back to us with a bit more info (e.g. the Form ID/URL, which fields you're referring to, etc) and a clearer description of what you're trying to do so we can better assist you.

  • grrguitar98
    Replied on February 22, 2017 at 4:57 PM

    I like the idea of read-only but how can I make it read-only for when they select Kindergarten for the grade but not read-only for other grades?

  • Kiran Support Team Lead
    Replied on February 22, 2017 at 10:02 PM

    You may setup a condition to choose the radio option by default and disable it based on the option selected in the previous answer. To change the radio button option based on the previous answer selected, you can setup the condition using Update/Calculate field as shown below:

    How can I prevent users from modifying a field? Image 1 Screenshot 30

    To disable a field on the form, you can use Enable/Required field condition as shown below:

    How can I prevent users from modifying a field? Image 2 Screenshot 41

    These conditions make the Security Tag to be in Red when Grade is Kindergarten or 1st and it will be disabled to change the option.

    Hope this information helps! 

  • grrguitar98
    Replied on February 23, 2017 at 4:48 PM

    Thank you very much. This solved the problem!