We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36760
    • 136 Posts
    I realize this is an older, never officially released plugin, but I'm hoping I can get some help anyway.

    I'm using the mhPayPal plugin (https://github.com/Mark-H/mhPayPal) for a gift certificate form. Everything is working fine, except I can't figure out the correct way to handle radio buttons.

    This is my snippet call on the page:
    [[!mhPayPal? 
        &postPaymentHooks=`email`
        &emailTo=`[email protected]`
        &emailTpl=`mhGiftCertificateFormReport`
        &emailSubject=`Gift Certificate`
        &extraRequiredFields=`name,email,phone,receiver,send_type`
    
        &currencies=`AUD`
        &formTpl=`mhGiftCertificateForm`
    ]]


    This is my form template (formTpl): http://pastebin.com/i5g2N5Nm

    And this is my email template (emailTpl): http://pastebin.com/mKW6P4rC

    The method that's currently in the formTpl is the latest one I tried. I've also tried a setup similar to Formit where I have a hidden field with the same name as the radio buttons (i.e. they would all be called send_type or send_type[]). I also tried without the hidden field, just having them both named send_type[], but that didn't work either. The email I receive after a the payment clears just shows "[[+send_type]]".

    I appreciate the help!