set fields to read-only once the form is edited

  • Profile Image
    fdelossantos
    Asked on February 24, 2021 at 04: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?

  • Profile Image
    Richie_P
    Answered on February 24, 2021 at 07: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.png

    Example condition to disable the field.

    1614170943_60364b3fe439a_1.png

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