Hello,
I am trying to build a donation form. There is a section to send a certificate in memorial to someone if the donation is over $25. I don't want to show the certificate option, unless the donation is >=25.
I am trying to do a modified version of this post, and this post, but can't seem to figure it out.
The donation field is a text box with Field Name and Field ID both set to "donationamount" and it validates as a digit. The memorial fields are memorysame, memorystreet, memorycity, memoryctate and memoryzip.
Under Events, I added a "Function Call" with On: "Change Value" Of: "donationamount" and Function: "certificateshow"
I added a Load JavaScript on onLoad and added this code:
This obviously doesn't work, but I'm not a strong coder, and need help accomplishing what I want.
Can someone point me in the right direction?
Thanks,
Melvins138
I am trying to build a donation form. There is a section to send a certificate in memorial to someone if the donation is over $25. I don't want to show the certificate option, unless the donation is >=25.
I am trying to do a modified version of this post, and this post, but can't seem to figure it out.
The donation field is a text box with Field Name and Field ID both set to "donationamount" and it validates as a digit. The memorial fields are memorysame, memorystreet, memorycity, memoryctate and memoryzip.
Under Events, I added a "Function Call" with On: "Change Value" Of: "donationamount" and Function: "certificateshow"
I added a Load JavaScript on onLoad and added this code:
function certificateshow() { if (jQuery('#donationamount').val() >= 25){ jQuery('#memoryname').show() && jQuery('#memorystreet').show() && jQuery('#memorycity').show() && jQuery('#memorystate').show() && jQuery('#memoryzip').show(); } else { jQuery('#memoryname').hide() && jQuery('#memorystreet').hide() && jQuery('#memorycity').hide() && jQuery('#memorystate').hide() && jQuery('#memoryzip').hide(); } }
This obviously doesn't work, but I'm not a strong coder, and need help accomplishing what I want.
Can someone point me in the right direction?
Thanks,
Melvins138