How can I conditionally disable a field?

  • EMCSecurityEMC
    Asked on April 13, 2018 at 7:22 PM
    I have a question regarding this below. The form the customer gets to sign will allow them to edit. Is there a way for me to lock certain fields so they can’t edit them? Thank you!
  • Support_Management Jotform Support
    Replied on April 13, 2018 at 7:24 PM

    Hello Jennifer - You mentioned "I have a question regarding this below" so I'm assuming you attached a screenshot to your email reply. If you did, we won't see it here in our forum.

    Related guide: How-to-Post-Screenshots-to-Our-Support-Forum

    Is there a way for me to lock certain fields so they can’t edit them?

    There is a way to lock (or as we call it, disable) certain fields conditionally. Please follow the instructions laid out on the guide I sent earlier on how to disable a field conditionally.

    Complete guide: How-to-Enable-Disable-Fields-Using-Conditional-Logic

    Give that a spin and let us know if you'd need more help.

  • EMCSecurityEMC
    Replied on April 16, 2018 at 4:51 PM

    Oh yes - thanks.  I read in another post that there is no way to hide the products that the customer doesn't purchase on the form.  Is that still correct or is there a way to do that now? 

    Here is a screen shot.  When the customer gets the form to sign, I'd like all other products to be hidden.  I believe this is a Purchase Order widget I'm using.  

    15239118464 16 Screenshot 10


  • Jan
    Replied on April 16, 2018 at 9:17 PM

    Unfortunately, it is not possible to hide all the other options inside the payment field. However, it is possible to hide the whole payment field when an option is selected. You can use the Show and Hide field condition for that. Here's an example:

    152392753404 17 i95hd Screenshot 10

    You may pass the value selected in the payment field into another field. Please take note that only the price will be pass and not the description. You can use the Update/Calculate Field condition for that.

    You can also create these products outside the payment field. For the total amount, please use the Form Calculation widget. After that, you can pass the value of the Form Calculation widget into the payment field.

    Please check these guides:
    How-to-Perform-Form-Calculation-Using-a-Widget
    How-to-Assign-Calculation-Value
    How-to-Pass-a-Calculation-to-a-Payment-Field

    Hope that helps. If you have any questions, let us know. Thank you.