Quantcast
Channel: WordPress.org Forums » [Forminator Forms – Contact Form, Payment Form & Custom Form Builder] Support
Viewing all articles
Browse latest Browse all 1398

Override default value of number field based on radio button

$
0
0

Replies: 2

Hello,

I have a form with a number field that is for a “Suggested Donation”. Sometimes the default should be $35, other times $10 based on what radio button the user selects. When I use I calculated field to pre-populate the default suggested donation ($10 or $35), the user cannot override the field if they wish to donate a different amount, say $50, because the calculated field is read-only.

If I use a number field, I can define a constant default value (like $35) which the user can override but I haven’t been able to figure out a way to dynamically change the default value to the suggested donation of $10 or $35 depending upon what the user selected in the radio button (1 button for $35; 2nd button for $10).

So, I am looking for a clever way to populate the Suggested Donation field with different values based on which radio button was selected.

Do you have any suggestions? I hope I was clear. The test web page uses the calculated field if you wish to see what I am trying to do. Thank you.


Viewing all articles
Browse latest Browse all 1398

Trending Articles