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.
Help with conditional showing of iframe on multi payment form.Asked by beatsahead on March 17, 2016 at 12:51 PM
I had this working briefly but must have one of the conditions wrong.
I have 2 different payment methods within iframes on this form. the paypal one is working correctly but the stripe one is showing all the time when it should be hidden unless the conditions are met.
Any help appreciated.
payment form multi payment payment methods hidden different all
You actually have two conditions set for both Widget that are conflicting. One condition hides the Widget ( id257 ) and shows the Widget ( id258 ) while the other with the same logic do the opposite. Also, unless both conditions 'Email Contains t' and 'Payment... is Equal to Card Pay...' are met nothing will actually happen with those widgets that are triggered by the conditions.
Looks like you want both PayPal and Stripe Payment added to the form, if that's the case I would suggest you create a number field set as hidden with default value to 0, and then add the conditions as in the bellow screenshot
What these conditions do is, update the value of the number field with your logic from previous conditions, which is then used to toggle the Widgets visibility.
You can view the clone - HERE and see if that is what you wanted to achieve
Thanks for answer but its still not doing what I want, the paypal field is showing all the time.
Stripe OR paypal should only show if card payment online is selected.
If card payment online is selected stripe should show if there is a T in the email field and paypal should show if there is not a t in the email field.
If any other payment method is selected paypal and stripe should be hidden.
To fix the issue, make sure that the only conditions that involve the field, "hide stripe payment field" are the following conditions below.
Also, you need to remove the Default Value set on the "hide stripe payment field". Since it is set to "0" it will always show "PayPal".
Here's a clone version of your form where I have applied the changes: https://form.jotform.com/60844278230960
Let us know if you need any further assistance. Thank you.