Help with conditional showing of iframe on multi payment form.

  • beatsahead
    Asked 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.

  • Huberson
    Replied on March 17, 2016 at 3:02 PM

    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.

    Help with conditional showing of iframe on multi payment form Screenshot 40

    Help with conditional showing of iframe on multi payment form Screenshot 51

     

    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

    Help with conditional showing of iframe on multi payment form Screenshot 62

    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

  • beatsahead
    Replied on March 25, 2016 at 7:30 AM

    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.

  • Mike_G JotForm Support
    Replied on March 25, 2016 at 9:51 AM

    To fix the issue, make sure that the only conditions that involve the field, "hide stripe payment field" are the following conditions below. 

    Help with conditional showing of iframe on multi payment form Screenshot 30

    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".

    Help with conditional showing of iframe on multi payment form Screenshot 41

    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.