Reply To: Populate select menu from radio buttons if value = 'Yes'

Home Forums Quform WordPress Populate select menu from radio buttons if value = 'Yes' Reply To: Populate select menu from radio buttons if value = 'Yes'

#29021
masonicdisorder
Participant

…Figured it out… I have different values than I have text; e.g., Sailing & Snorkeling – $175 with a VALUE of -175…

So, I changed the section of the calculation to:

` // Comp 1
var val21 = $(‘.quform-field-4_64’).val();
if (val21 == ‘-175’) {
total -= 175;
}else if (val21 == ‘-180’) {
total -= 180;
}else if (val21 == ‘-215’) {
total -= 215;
}else if (val21 == ‘-135’) {
total -= 135;
}else if (val21 == ‘-215’) {
total -= 215;
}else if (val21 == ‘-150’) {
total -= 150;
}else if (val21 == ‘-300’) {
total -= 300;
}else if (val21 == ‘-335’) {
total -= 335;
}else if (val21 == ‘-150’) {
total -= 150;
}else if (val21 == ‘-185′) {
total -= 185;
}’

…and it works!

This post is turning into my dev journal LOL…

Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy