• Resolved pederan

    (@pederan)


    Hi

    I don’t know why, but with this code, the form is not showing and I get the message:
    Not all required fields are present in the booking form.

    <div class='eme-rsvp-form'>
        <h2>P?meldingsskjema</h3>
        <p>Alle felter markert med stjerne er obligatoriske</p>
        <div class='row input-row'>
            <label class='row'>Fornavn og etternavn: <span class='required-star'>*</span></label>
            <div>#_NAME</div>
        </div>
        <div class='row input-row'>
            <label  class='row'>Gyldig e-postadresse: <span class='required-star'>*</span></label>
            <div>#_EMAIL</div>
        </div>
        <div class='row input-row'>
            <label class='row'>Mobiltelefon:</label>
            <div>#_PHONE</div>
        </div>
    </div>
    <input type="hidden" id="bookedSeats" name="bookedSeats" value="1">
    <div class='row input-row submit-row'>#_SUBMIT</div>

    If I add an extra #_SUBMIT to the end of this code it shows the form, but with two submit buttons. Or I can add #_SEATS to the form and it will show up. But I only want them to able to book one seat, thus the hidden input field.

    I think this used to work before. Can you tell me what I am doing wrong? Thanks in advance!
    Regards
    Peder

    https://www.ads-software.com/plugins/events-made-easy/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Franky

    (@liedekef)

    Well, because #_SEATS isn’t present, the count doesn’t add up and you get the error (it is a simple count for some fields).
    In your case, it seems you always want the 1 seat, so why don’t you set the option ‘Only take attendance (0 or 1 seat) for this event” and set the minimum number of seats to “1”. That will also hide the seats but the count should be ok and the form should show up

    Thread Starter pederan

    (@pederan)

    Thanks for responding, but unfortunately that doesn’t help. See screenshot: https://imgur.com/ZRmogpI

    Plugin Author Franky

    (@liedekef)

    Well, you still need to put #_SEATS in your form of course, but it will be a hidden form element,

    Thread Starter pederan

    (@pederan)

    Thanks, that worked! But is there somewhere in the settings I could set so the checkbox ‘Only take attendance (0 or 1 seat) for this event’ will be ticked by default when creating a new event? I have set max and min number of spaces to 1, but can’t find that setting.

    Plugin Author Franky

    (@liedekef)

    Nope, no such default for now. Feel free to create a feature request for this at https://www.e-dynamics.be/wordpress

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Need two #_SUBMIT placeholders’ is closed to new replies.