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

    How can I allow only a specific user to see certain fields in the form - like submit

    Asked by guineapigme on March 04, 2015 at 11:26 AM

    Basically I am looking for what a lot of people want ... a read only version of the form.   And, I would like to be able to force a read only mode view (which might have subsetted fields or even form tabs).

     

    Firstly, is there a way to conditionally show form tabs?

    Is there a way to "automatically" set a condition when calling up an instance of a form.

     

    ===

     

    I would like a simple mechanism to allow one user to have access to the form in a "submit" mode while set of people to see a read-only version of the form (with no submit buttons and other things that were relevant in an edit mode).

     

    Is there a way to automatically carry in a "mode" on a form.

     

    Right now I am relying on the "honor" system to mode select to have view or edit capabilities for the form contents.

    This is clumsy.   

    I would also like the ability to do some filtering prior to print or submission such that I could filter out those buttons in my print view. 

    http://www.jotform.com//?formID=43637462243152

    Any ideas?

     

    allow only allow JotForm print no submit www
  • Profile Image
    JotForm Support

    Answered by Welvin on March 04, 2015 at 12:00 PM

    Hi,

    Unfortunately, we do not have an option to set read-only fields for just a certain form users. Our read-only feature is applied to all users and there's currently no way you can set a condition like this. I can submit a request about it to our developers. I think this is possible, like for example,  If a field is filled, make this other field as "Read-Only".

    For your questions:

    Firstly, is there a way to conditionally show form tabs?

    -Unfortunately, you cannot apply a conditional logic to our form tabs widget. The form tab widget is always visible in the form and only when there's a page break in your form.

     

    Is there a way to "automatically" set a condition when calling up an instance of a form.

    -Can you please explain this further? Do you mean to say, to set a condition to make field as read-only as I have explained above?

     

    Is there a way to automatically carry in a "mode" on a form.

    -For read-only, you can do this in the form. However, you cannot use this if you want to limit users and give others the ability to still edit the field.

     

    I think a workaround would be to use multiple forms. One form with read-only fields and one form which is fillable. Then you can embed these two forms into another form, then set a conditional logic to show the forms based on the selection. Show Read-Only form is the user selects the read-only option and the same for the other form.

    You can use our iFrame widget: http://widgets.jotform.com/widget/iframe_embed for embedding a form into another form.

    How's that? Let me know if you agree with this and needs an example.

    Thanks

     

  • Profile Image

    Answered by guineapigme on March 04, 2015 at 02:38 PM

    This would be very difficult to maintain if I had to set the read-only option for each individual field.

     

    A global read-only option for fields seems much more workable.  IS there any injected code that would do this?  And if so, could it itself be executed conditionally?

  • Profile Image
    JotForm Support

    Answered by david on March 04, 2015 at 03:42 PM

    To the best of my knowledge it is not possible to make your fields globally read only with CSS.  This may be possible with Javascript or JQuery:

    http://stackoverflow.com/questions/4027236/adding-readonly-attribute-to-all-form-elements

    Though this is outside the realm of what we support.

    My colleague recommendation of having two separate forms that are conditionally shown is the best course I can come up with as well.