Can I show a different paypal product option based upon which page on my website the form is embedded?

  • Profile Image
    test_form_001
    Asked on March 21, 2017 at 01:31 AM

    If the form is embedded on 2 or more different pages with sales copy for 2 different products can the form use conditional logic to display the paypal product that is pertinent to that page?

     

    My back up question is, how do you add an option for Add to Cart? 

     

    But I was thinking form submission / check out looking like:

     

    website.com/Product page 1

    form shows:

    product 1 [x]                               (with product 2 hidden)

    Add more products?

    product 2 [ ]  appears for selection and then submit/purchase.

     

    website.com/Product page 2

    form shows:

    product 2 [x]                             (with product 1 hidden)

    Add more products? 

    product 2 [ ]  appears for selection and then submit/purchase.

     

    Can my website url be a conditional logic variable?

     

    Otherwise, I don't see an add to shopping cart function under the paypal element. How do I do this?

     

    Thanks!

     

     

  • Profile Image
    Mike_G
    Answered on March 21, 2017 at 06:57 AM

    Yes, this would be possible with the help of the Get Form Page URL widget. 

    Please check this sample web page I have created below.

    Sample Web Page

    In the Main web page, there are two links, clicking any of the links will redirect you to a page where the form is embedded.

    Product 1

    Product 2

    I have passed the value of the Get Form Page URL widget to a textbox field to determine the current page (I have used the help of the DateTime widget to do this).

    and used it to conditionally show a product accordingly. Below are the conditions I added in the form to make everything work.

    However, I would like to apologize for any inconvenience, I'm afraid to say that an option to add products to our payment fields dynamically is not available. That is why if you will notice in the form I embedded on the web page above, I used one checkbox field for each product item.

    I have set a calculation value for each product item

    How-to-Assign-Calculation-Value

     

    and passed the value to a Form Calculation widget

    How-to-Perform-Form-Calculation-Using-a-Widget

    then into the payment field in the form.

    How-to-Pass-a-Calculation-to-a-Payment-Field

    With all the information above, I would still recommend you create a clone version of my sample form (https://form.jotform.com/70792776119972) to your account so you can inspect it better.

    How-to-Clone-an-Existing-Form-from-a-URL

    How-to-clone-an-embedded-form-from-a-webpage

    Then, if you have any further questions, please feel free to contact us again anytime.

    Thank you.