Can Jotform select a specific product on the Square Widget based on Survey Questions?

  • Profile Image
    Asked on December 14, 2020 at 11:11 AM

    For example, if I sell 3 different kinds of lollypops red ($1), blue($2) and yellow($3), and Red lollypops are only available to people that went to Red High School. Could I set a survey question, and have the red option show ONLY if the person selected they went to red high school?

  • Profile Image
    Answered on December 14, 2020 at 12:53 PM

    Hi! It is not possible to directly select a product on a payment widget based on user selection; but you can use user-defined payment method along with conditions and form calculation widget to achieve this.

    User-defined payment method allows users to build their own payment mechanisms. You can read more about it here: how-to-pass-a-calculation-to-a-payment-field

    BTW, following is how you can create this example:

    1. Create a single choice options field that asks the user their school.

    2. Create Number fields asking user how many color specific lollipops do they want to order. The rates of each lollipop type should be set as the calculation values.

    3. Introduce SHOW/HIDE conditions to show these number fields based on user answer.

    4. Then create a 'form calculation' field which simply calculates the payable amount based on user selection.

    5. Then in your Square payment widget, set payment type to 'user-defined' and set the "Get Price From" value to the form calculation widget that we earlier created.

    6. Make sure to set "Clear Hidden Field Values" form setting to "Clear on Being Hidden".

    I created a sample form which does this:

    Feel free to test it. If this helps, then you can clone it under your account to further check its implementation.

    Following is a demonstration of this form.

    I hope this helps. If you have any questions, feel free to ask.

    Thank you!