How to show different product based on answers?

  • lshamore47
    Asked on June 7, 2024 at 2:23 AM

    hi

    i want to use one form for 2 customer. If Customer A log ins, customer can only see his own product list. If Customer B login, cusotmer B can see his own product list only.


    is there any field we can use ? some access secret password? based on user password, then we can hide/show field


    Please assist


    Thanks

    Amore

  • Sheena JotForm Support
    Replied on June 7, 2024 at 2:43 AM

    Hello Amore,

    Thanks for reaching out to Jotform Support. Using condition, we can show different fields based on the user's answer. Let me show you how:

    1. In Form Builder, click on the Add Form Element menu and drag-drop the fields for products of customer A and B. Note that it is not possible to use the product list twice so you may need to use basic fields for the product (e.g multiple choice field.)
    2. Add a field validator where the user can enter a code.

    How to show different product based on answers? Image 1 Screenshot 40


    Now, let's set up the conditions:

    1. In Form Builder, in the orange navigation bar at the top of the page, click on Settings.
    2. Click on Conditions on the left of the page.
    3. Now, click on Add a New Condition and then click on Show/Hide Field.
    4. Set the conditions like you see below:
    • IF: Code (this is the question that has the choice that the form submitter needs to select)
    • STATE: Is Equal To
    • VALUE: CustomerA
    • DO: Show
    • FIELD: Product for Customer A (the follow-up question that you want to show)

    How to show different product based on answers? Image 2 Screenshot 51

    Set up Conditions for all of the choices for your question. Check out the screencast below to see how your form will work after setting up the Conditions:

    How to show different product based on answers? Image 3 Screenshot 62

    We also have a guide on How to Show or Hide Fields Conditionally that you can check out.

    Give it a try and let us know how it goes.

  • lshamore47
    Replied on June 18, 2024 at 1:10 AM

    hi

    i did this method

    but i encounter issue, user can see previous entry

    how can we remove history value?


  • Eliza JotForm Support
    Replied on June 18, 2024 at 1:27 AM

    Hi Amore,

    Can you give us the URL of the form that you created, so we can test and see what's going on? Let me show you how to do that:

    1. On your My Forms page, hover your mouse over the form, and click on the More dropdown on the right side of the page.
    2. Under the Publish column, select Publish Form.
    3. Click on the Copy Link button.

    How to show different product based on answers? Image 1 Screenshot 20

    Also, can you take a screen recording of the issue that you encountered to see if we can replicate the issue on our end? Check out this guide about how to send a screenshot to our Support Forum.

    After we hear back from you, we’ll have a better idea of what’s going on and how to help.

  • lshamore47
    Replied on June 18, 2024 at 1:48 AM

    How to show different product based on answers? Image 1 Screenshot 20this is the issue . customer is able to see previous input

  • Waqas JotForm Support
    Replied on June 18, 2024 at 2:12 AM

    Hi Amore,

    Keep in mind that it will only appear on your browser because you are the form owner. Can you try to open your form on a different browser, such as incognito? Can you try to clear your browser's cache and cookies? Can you try it again and see how it goes? If you run into the same issue again, let us know, and we'll do some more testing to see what's going on. 

    Give it a try and reach out again if you have any other questions.

 
Your Answer