• Resolved MrSleuth

    (@mrsleuth)


    Hi,

    How can I create a form that selects the amount based on the selection of a radio button?

    For example:

    – Option 1 | 100 euro
    – Option 2 | 150 euro
    – Option 3 | 200 euro

    • This topic was modified 4 years, 4 months ago by MrSleuth.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter MrSleuth

    (@mrsleuth)

    Not possible?

    Plugin Author tsjippy

    (@tsjippy)

    I think it is possible, will come back to you later

    Plugin Author tsjippy

    (@tsjippy)

    you can do so by adding this in your contactform:

    <span class="wpcf7-form-control-wrap amount"><select name="amount" class="wpcf7-form-control wpcf7-text wpcf7-select">
    <option value="100">Option 1</option>
    <option value="150">Option 2</option>
    <option value="200">Option 3</option>
    </select>
    </span>
    • This reply was modified 4 years, 3 months ago by tsjippy.

    Hi Tsjippy

    I tried the code above but is doesn’t work as it schould. I get a Pulldownmenu (whithout een indication that it is a pulldown) Where should the amount appear?

    Below the full contactform for signing up for am Motorweekend (or visit https://motortrainingen.vtende.nl/booking/)
    ———————————————————————————
    <Label> Gegevens deelnemer </label>

    [text* Voornaam placeholder “Voornaam”]

    [text* Achternaam placeholder “Achternaam”]

    [date* Geboortedatum placeholder “Geboortedatum”] [checkbox* id:mv class:mv “M” “V”]

    [text* Adres placeholder “Adres”]

    [text* Postcode placeholder “postcode”]

    [text* Woonplaats placeholder “Woonplaats”]

    [email* UwEmail id:email class:email placeholder “Uw E-mail”]

    Neemt u een duopassagier mee?
    [radio duopassagier id:duo class:duo default:1 “nee” “ja”]

    <Label> Gegevens Duo passagier (inden van toepassing) </label>

    [text Voornaam placeholder "Voornaam"]

    [text Achternaam placeholder "Achternaam"]

    [date Geboortedatum placeholder “Geboortedatum”] [checkbox* id:mv class:mv “M” “V”]

    [text Adres placeholder "Adres"]

    [text Postcode placeholder "postcode"]

    [text Woonplaats placeholder "Woonplaats"]

    [email* UwEmail id:email class:email placeholder “Uw E-mail”]

    <label>Kies uw weekend</label>
    [radio Kiesuwweekend default:1 “1” “2” “3” “4” “5”]

    <Label>Rijervaring Deelnemer</label>
    [checkbox* Rijbewijs id:rijbewijs class:rijbewijs “A1” “A2” “A3” “B” “C” “D” “E”]

    <span class=”wpcf7-form-control-wrap amount”><select name=”amount” class=”wpcf7-form-control wpcf7-text wpcf7-select”>
    <Option value=”425″>Ik kom alleen</option>
    <Option value=”470″>Ik kom alleen en wil 1 persoonskamer</option>
    <Option value=”725″>Ik neem een duopassagier mee</option>
    </select>
    </span>

    [amount* amount-486 min:425 max:425 “425”]

    [paymentchoice paymentmethod-380 paymenttype:oneoff “ideal”]
    [bankchoice bankchoice-72]
    [submit “Send”]

    Plugin Author tsjippy

    (@tsjippy)

    sorry, I misunderstood you.
    If you want to fill in a field dynamically based on another field value, you need javascript.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Amount selection by radiobutton’ is closed to new replies.