set fields to read-only once the form is edited

  • Profile Image
    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
    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.

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

    Example condition to hide the field.


    Example condition to disable the field.


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