-
WCDFoundationAsked on June 27, 2025 at 4:10 PM
Is there a way to use logic to allow only certain products to based on a response to a question?
I want to make certain "product" options invisible based on a selection of a question in the registration form. Can we do that?
-
Reymae JotForm SupportReplied on June 27, 2025 at 6:29 PM
Hi WCDFoundation,
Thanks for reaching out to Jotform Support. Unfortunately, it’s not currently possible to prevent a product in a Product List field from being selected based on the answer in another field. As a workaround, you can use Single Choice elements to display your products individually. This way, you can create conditional logic to show or hide specific products based on the user's answers in other fields. Let me show you how:
First, we will add the single choice element on the form:
1. While in Form Builder, click on Add Element on the left side of the page.
2. In the Form Elements menu, under the Basic tab, scroll down the list and choose the Single Choice element.
3. Now, just drag and drop it to your form.
You can follow the same steps to add more single choice element for the pother product you will be having in your form.
Now, we will create a conditional logic:
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 side of the screen.
3. Select the Show/Hide Field.
4. Use the following values:
5. Click on Save button once done.
You can follow the same steps to create a condition for the other product option. You can also clone my demo form to check it. Check out the screencast below to see my results:
We also have a guide to help you learn How to Show or Hide Fields Conditionally.
Give it a try and reach out again if you have any other questions.
-
WCDFoundationReplied on July 8, 2025 at 12:18 PM
Thank you - is there a way to create payment options with a single choice element?
-
ElsonReplied on July 8, 2025 at 12:35 PM
Hi WCDFoundation,
Yes you can. Using the same method as above, you can create some conditions to show and hide elements.
For example if you wanted paypal to be the form of payment, you can insert the paypal payment widget into your form. Then in the widget's properties, under the advanced tab, you can turn on "hide field".
From there you can create a single choice option and create a condition that says, "if paypal is selected, show "paypal widget".
Hope that helps.