set fields to read-only once the form is edited

  • occataylo
    Asked on February 24, 2021 at 4:13 AM

    I created a referral slip for consultation, patient has to fill-out specific fields and submit the form.

    The doctor will edit the form thru edit link, and has to fill-out specific section/fields of the form. Can we restrict the doctor from editing the patient's section?

  • Richie JotForm Support
    Replied on February 24, 2021 at 7:49 AM

    Yes, you may restrict the doctor from filling the patients information.

    To set this up,

    1) add a get form page URL widget in your form to get check the URL of the form.

    https://www.jotform.com/widgets/get-form-page-url

    2) Use condition to hide or set the field to be read-only when the form is edited.

    Example condition to hide the field.

    1614170896 60364b102774b 1 Screenshot 10

    Example condition to disable the field.

    1614170943 60364b3fe439a 1 Screenshot 21

    Please check it out and let us know if you have further questions.