How can I hide different form sections for different users?

  • greenworld1170
    Asked on October 27, 2021 at 7:40 AM

    Hi Jotform Team

    I have created a form that has three sections and those three sections(forms) will be filled by three different users. So the issue here is I want to hide the remaining sections when the user is filling his particular form section and he shouldn't have any access and he even should'nt see those other sections.

    The first form section is the owner section which should be only filled and seen by the owner, and the second form section is the Retailer section which should be only filled and seen by the Retailer, and The third form section is the customer section which should be only filled and seen by the customer.

    Can you please help me by providing some solution to hide different form sections for different users?

    Jotform Thread 3461700 Screenshot
  • roneet
    Replied on October 27, 2021 at 7:58 AM

    You can have a hidden field via which you can identify which collapse section should be shown.

    I have implemented the logic in my cloned form. Here are the links for 3 different sections:

    1) Owner section:

    https://form.jotform.com/212993043084961?flag=owner

    2) Retailer Section:

    https://form.jotform.com/212993043084961?flag=retailer

    3) Customer section:

    https://form.jotform.com/212993043084961?flag=customer

    I am passing different values via the form URL into the Flag variable and then configured conditions. Based on these values it should show/hide the sections:

    1635335880 61793ec8b0027  Screenshot 10

    Let us know this will work for you.

    Thanks.

  • greenworld1170
    Replied on October 27, 2021 at 9:21 AM

    Hi Roneet

    This alternative works fine but I have a few questions -

    1. I don't want to give any kind of permission to the different users to see different form sections. Right now what's happening is if the "Retailer" opens the form link then he can see other form sections also by typing the flag values. So I don't want to do this because our form has some personal information that we didn't want to share with others.
    2. How I can customize the form URL based on flag value like you did.

    For Example - https://form.jotform.com/212993212954056 ( This is the original URL) and https://form.jotform.com/212993043084961?flag=owner (This is the customize form section URL. ) How I can do this. Please share some articles and videos with me.

  • Mubeen_A
    Replied on October 27, 2021 at 10:31 AM

    Hi @greenworld1170,

    You can use the Get from URL Widget. By using this Widget you will be able to check what "flag" is in the URL and show proper questions.

    In case of any questions, feel free to reach out.

    Best,

    Mubeen_A

  • Mubeen_A
    Replied on October 27, 2021 at 10:36 AM

    I am sorry I forget to mention that the above response is for your both questions.

    Best,

    Mubeen_A

  • greenworld1170
    Replied on November 1, 2021 at 12:57 AM

    Hi Jotform Team,

    I'm not getting a proper solution to my issue. Right now what is happening with my form I added One new section in that form and I also added a few extra fields in my form and now When I apply the above conditions but that condition is not working for New Customer Section (First issue) and (Second Issue) When I'm opening form link in a new tab and enter New or Owner and Retailer under flag value, it takes me to the Retailer form and in that page, New Customer Section is showing Which I don't want to show there . I don't know why this is happening even I applied the correct conditions.

    Right now my Retailer Section has a NEXT button to fill another part of the form.

    What I want to show is when someone opens a form link in a new tab the only form name and the flag column will be shown to them and when they entered value in the flag column (Values - Owner, Retailer, Customer, New) then the only particular section will be shown to them. Please keep this in mind when someone enters the "Retailer" in the Flag column then both parts of the Retailer form will need to show to them when they will first part of the Retailer form and click on the Next Button then Show them the next part of the Retailer form and then they submit the Retailer form section only.

    Here is my form URL - https://form.jotform.com/greenworld1170/approval-form

    Please provide me exact solution to this problem ASAP.

    Here are the conditions which I'm using right now but these conditions are not working.

    1635742784 617f7440c9465 Screenshot (8) Screenshot 10

    Thanks in Advance,

    Anuraj

  • Tommaso_F
    Replied on November 1, 2021 at 4:05 AM

    Hello there,

    About your first question > I don't want to give any kind of permission to the different users to see different form sections. you need to set this condition in order to allow your user to unedited the flag field. Like this, when they open for example https://form.jotform.com/213041763987967?flag=owner, they will be not able to edit the flag field. 1635753795 617f9f4394a31  Screenshot 10

    About your second question >How I can customize the form URL based on flag value like you did, do you want to do the same as for other fields? Could you please give us more details about your concern so we can assist you properly?

  • greenworld1170
    Replied on November 1, 2021 at 7:31 AM

    Hello Tommaso_F

    This is not what I'm asking. you are giving me answers which I know already.

    Here is my question/problem which I want to finger out by any of the Jotform support team.

    Right now what is happening with my form I added One new section in that form and I also added a few extra fields in my form and now When I apply the above conditions but that condition is not working for New Customer Section (First issue) and (Second Issue) When I'm opening form link in a new tab and enter New or Owner and Retailer under flag value, it takes me to the Retailer form and in that page, New Customer Section is showing Which I don't want to show there. I don't know why this is happening even I applied the correct conditions.

    Right now my Retailer Section has a NEXT button to fill another part of the form.

    What I want to show is when someone opens a form link in a new tab the only form name and the flag column will be shown to them and when they entered value in the flag column (Values - Owner, Retailer, Customer, New) then the only particular section will be shown to them. Please keep this in mind when someone enters the "Retailer" in the Flag column then both parts of the Retailer form will need to show to them when they will first part of the Retailer form and click on the Next Button then Show them the next part of the Retailer form and then they submit the Retailer form section only.

    Here is my form URL - https://form.jotform.com/greenworld1170/approval-form

    Please provide me exact solution to this problem ASAP.

  • Mubeen_A
    Replied on November 1, 2021 at 12:06 PM

    Hi @greenworld1170,

    I looked into your form and everything seems to be working fine for me. 1635782540 61800f8c91341 condition Screenshot 10 The conditions are working fine as you can see above but I couldn't see the New Customer section next to the Retailer section as you mentioned in the previous response.

    I would also like you to confirm if the Retailer section has two addresses? Maybe this something causing confusion.

    Awaiting your response.