I am trying to hide/show a payment method field based on the amount due. I have 2 payment methods (PayPal and Pay by Check).
I want to hide the Payment Method Field if the amount due is greater than $1500.
I set up a Question Event that is to Hide based on a Hidden Field Value of 1 and Show with a Value of 0.
I set the Hidden field value with a client side script
if ($(GrandTotal) > 1500){
$(NoPayPal) = 1;}
else{
$(NoPayPal) = 0;}
(NoPayPal is the hidden field that triggers the Question Event to Hide the Payment Method Field)
I can get the hide to occur but it is delayed by a refresh. The first time the amount exceeds 1500 but it does not hide. If the amount exceeds 1500 for a second time it hides. Same thing happens with Show. The first time the amount drops below 1500 it does not Show but the second time it Shows.
Does this make sense? any suggestions?
Thanks, Dan