What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Make prefilled fields read only

    Asked by NRCsupport on February 12, 2014 at 02:41 AM

    If I prefill some fields with url parameters, I'd like them to be read only, so that the user cannot change them or clear them using the clear form button.

    Obviously if the fields are not prefilled then I want them to be editable and clearable in the usual way.

    Is this possible?

    clear form button filled fields
  • Profile Image
    JotForm Support

    Answered by jonathan on February 12, 2014 at 04:18 AM

    Hi,

    You can set the Read-Only property to YES in the field properties option.

    Here is an example form http://form.jotform.me/form/40420933572450?yourName=JotForm

    Hope this help. Inform us if you need further assistance.

    Thanks!

     

  • Profile Image

    Answered by NRCsupport on February 12, 2014 at 12:22 PM

    Thanks, but that is not really what I want to know. Yes a field can be defined as readonly, but what I want is that the field should normally be read/write, but if it is filled from a URL parameter, then it should become readonlyso that the user cannot change it, and hopefully clearform would not clear it.

  • Profile Image
    JotForm Support

    Answered by TitusN on February 12, 2014 at 01:00 PM

    Hello,

    That would be incredibly difficult to achieve, being that a URL prepopulation functions the same as a user would in filling the form.

    But Your request is understandable.

    Are the prefill values a variable or fixed?  - Please share your prefill URL and we can consider a workaround.

  • Profile Image

    Answered by NRCsupport on February 12, 2014 at 05:36 PM

    Hello Titus,

     

    What I wanted to do was to prepopulate some fields on some occasions when calling the form from another form. In particular I wanted to use some of the settings in one form to get the thank you page to configure itself accordingly. I think that I have found my own workaround. I can put  hidden fields onto the thank you page. The URL line to call the page can set values for these fields, and the page can use rules based on these values to decide what to show. It appears that the clear form button does not clear hidden fields – so I can achieve my object.

     

    Thanks,

       John