Paypal Payment Wizard Item Filtering

  • mypnaa
    Asked on September 6, 2014 at 1: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.

  • Elton Support Team Lead
    Replied on September 6, 2014 at 5: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!

  • mypnaa
    Replied on September 6, 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. :-(

  • KadeJM
    Replied on September 6, 2014 at 4: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.