Can I disable the product item in Stripe based on a conditional setting?

  • ParadeDeck
    Asked on February 17, 2021 at 10:38 AM

    How do I disable products in the Stripe widget based on a conditional setting in a form question? I want to disable "recruit - 14 FREE Labels) when the answer to the first question is No.


    1613576202 602d380ab3556  Screenshot 101613576224 602d38201838e  Screenshot 21

  • Welvin Support Team Lead
    Replied on February 17, 2021 at 1:17 PM

    I'm sorry, but it's not possible to target an item from the payment field with conditional logic. You would need to set up a workaround for the items to disable them. For example, add the products using our basic dropdown fields, assigned a calculation value for the dropdown options, use the calculation to get the total. You can then pass the calculated total to the payment field.

    Guide to assign a calculation value: https://www.jotform.com/help/301-How-to-Assign-Calculation-Value.

    Guide to calculate: https://www.jotform.com/help/259-How-to-Perform-Form-Calculation-Using-a-Widget.

    Pass to payment field: https://www.jotform.com/help/275-How-to-Pass-a-Calculation-to-a-Payment-Field.

    Please let us know if you require additional assistance.

    Thanks

  • ParadeDeck
    Replied on February 17, 2021 at 2:33 PM
    thanks. Is it possible to send them to another FORM if they answer ‘no’ to my question? The other form will have a new SRIPE Widget; or can I have a new STRIPE widget on a second page?
    Andrew Appleton
    CEO/Founder – USMC Veteran
    Personal: 202.669.5354
    MondayDelivery.com
    Andrew@MondayDelivery.com
    Sharing Strength and Inspiration every Monday
    ...
  • Welvin Support Team Lead
    Replied on February 17, 2021 at 4:43 PM

    You can't have two or more payment fields in a form, so sending users to another form would be the ideal solution. However, do you mean, send them after submitting the form or you mean, send them automatically?

    You have two methods here:

    1. Add the link to the other form in the current form. You can have it on the Paragraph field. Show this Paragraph field by conditional logic when the answer is No.

    Guide: https://www.jotform.com/help/316-How-to-Show-or-Hide-Fields-Base-on-User-s-Answer.

    2. Set up a logic to hide the whole payment field when No is selected. Set up another logic that would redirect users to another form on submit. This method means users will have to submit the form after selecting No to redirect to another form.

    Guide to set up the redirect condition: https://www.jotform.com/help/317-change-thank-you-page-url-based-on-a-condition.

    Thanks