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.


  • Profile Image

    Paypal Payment Wizard Item Filtering

    Asked by mypnaa on September 06, 2014 at 01:33 AM

    Is there a way I can filter the products from Paypal using the jotform payment wizard? In this form http://form.jotformpro.com/form/42478559747978 I want to filter the products based on the selected category (membership status). For example, I selected Pres. and Pres. Elect on the membership status, the product should only show the product for Pres. and Pres. Elect.

    I cannot do the read-only and calculation field method because when you go to the paypal page, it will not show the name of the items, only the total amount. I cannot also do the custom property because the tendency is they can select membership status but it will be also possible to select other product that doesn't match their status.

    Page URL:
    http://form.jotformpro.com/form/42478559747978

    JotForm name status product
  • Profile Image
    JotForm Support

    Answered by EltonCris on September 06, 2014 at 05:56 AM

    Hi,

    I think the calculation method is the easiest workaround here but since it does not fit on your requirements, then using your form source code is the last solution to achieve this. But, this may require javascript knowledge since you have to create and inject your custom JS codes in order to filter the products.

    If you need further assistance, let us know here.

    Regards!

  • Profile Image

    Answered by mypnaa on September 06, 2014 at 11:45 AM

    I agree, the source code is the last solution and I've been trying to figure this out quite hard since I'm not a js expert. I am looking at the js condition code but I don't know the IDs/name of each item in the checkbox. Unlike the other field formats I can see clearly the name, ids, etc. Can you give me a sample code which outputs the filtering like above then I'll just follow it? I find it funny that I decided to just duplicate the forms to each member status and change the amount of the items. :-(

  • Profile Image
    JotForm Support

    Answered by KadeJM on September 06, 2014 at 04:05 PM

    I'm not sure if you'd be interested but there's actually another way around that problem without the need of the source code via the use of a Multi-Payment Form. The only downside to it though is that it would split those up into separate forms, but in my opinion I think it's benefit outweighs it all.

    Here's a demo example of my alternate suggestion for this so that you can see what I mean:

      http://form.jotform.us/form/42486418682161   [CLONE IT!]

    Basically what I did to create it is divide your payments into 4 different forms and place them all onto a 5th form. Then on the 5th master form above in my example I used conditional logic to hide them unless selected to create the sense of these options being filtered appropriately.