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'

#29020
masonicdisorder
Participant

…Dang!
I really AM tired… I neglected to add “:checked'” at the end of each of the radio fields….

That part is working now. woo-hoo!

…this part of the cost calculation still isn’t working as expected though (I tried it with += -150 and -= 150 but neither is working)

I’m hoping it is something super simple and I’ll figure it out before you get a chance to reply but I wanted to put this “out there” in case it might help anyone else.

Oh, and the form is here: http://register-here.com/twiy-2019/test/ ~ site pw Nassau

Thank you!

        // Comp 1
        var val21 = $('.quform-field-4_64').val();
        if (val21 == 'Please select') {
            total += 0;
        } else if (val21 == 'Snorkeling & Sailing - $175') {
            total -= 175;
        }else if (val21 == 'ATV Tour - $180') {
            total -= 180;
        }else if (val21 == 'Underwater Scooter - $215') {
            total -= 215;
        }else if (val21 == 'Shopping Tour - $135') {
            total -= 135;
        }else if (val21 == 'Golf at Baha Mar - $215') {
            total -= 215;
        }else if (val21 == 'Dolphin Encounter - $150') {
            total -= 150;
        }else if (val21 == 'Dolphin Swim - $300') {
            total -= 300;
        }else if (val21 == 'Powerboat Excursion - $335') {
            total -= 335;
        }else if (val21 == 'Resort Credit - $150') {
            total -= 150;
        }else if (val21 == 'Fishing Trip - $185') {
            total -= 185;
        }
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy