Events Made Easy Forums Bug fixed or feature request implemented Dynamic custom fields populated based on #_SEATS only writes the last set

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #58583
    Anonymous
    Inactive

    I am stumped in trying to get additional info in sets based on #_SEATS.

    In a nutshell:

    https://i.imgur.com/vJXWsSe.png
    screenshot

    I want an additional set of info (registration) for each selected number of seats. I have the dynamic data and additional fields populating on site (see image above), but when the form is submitted I only see the last set of additional info in the registration.

    I need each set of fields populated in the registration. I hope I’m making sense.
    Any help is appreciated.

    #58584
    Anonymous
    Inactive

    For reference:

    This is the “Register Online” form template:

    <h2>Register Online</h2>
    <table class='eme-rsvp-form'>
    <tr><th scope='row'>Number of Registrations*:</th><td>#_SEATS</td></tr>
    <tr><th scope='row'>Name*:</th><td>#_NAME</td></tr>
    <tr><th scope='row'>E-Mail*:</th><td>#_EMAIL</td></tr>
    <tr><th scope='row'>Phone number:</th><td>#_PHONE</td></tr>
    <tr><th scope='row'>Address Line 1</th><td>#_ADDRESS1</td></tr>
    <tr><th scope='row'>Address Line 2</th><td>#_ADDRESS2</td></tr>
    <tr><th scope='row'>City:</th><td>#_CITY</td></tr>
    <tr><th scope='row'>Country:</th><td>#_COUNTRY</td></tr>
    <tr><th scope='row'>State:</th><td>#_STATE</td></tr>
    <tr><th scope='row'>Zip Code:</th><td>#_ZIP</td></tr>
    <tr><th scope='row'>Comment:</th><td>#_COMMENT</td></tr>
    </table>
    #_DYNAMICDATA
    #_SUBMIT

    And this is the “Additional Registration” form template I am using:

    <h2>Additional Registration</h2>
    <table class="eme-rsvp-form">
    <tbody>
    <tr><th scope="row">Name:</th><td>#_FIELD{Additional Name}</td></tr>
    <tr><th scope="row">E-Mail:</th><td>#_FIELD{Additional Email}</td></tr>
    <tr><th scope="row">Phone number:</th><td>#_FIELD{Additional Phone Number}</td></tr>
    <tr><th scope="row">Full Address:</th><td>#_FIELD{Additional Full Address}</td></tr>
    </tbody>
    </table>

    This is the conditional logic for #_SEATS
    https://i.imgur.com/csOLRsa.png
    screenshot-2

    Let me know if there is anything else I should show you.

    #58585
    Anonymous
    Inactive

    From what I can tell the form fields are being serialized which leads me to believe it should be submitting as some kind array.
    https://i.imgur.com/9Tkf5dq.png
    screenshot-3

    This is what I see when submitted:
    https://i.imgur.com/U7UjEHI.png
    screenshot-4

    https://i.imgur.com/ZMHsfmu.png
    screenshot-5

    https://i.imgur.com/cBM7Wij.png
    screenshot-6

    #58586
    Franky
    Keymaster

    Thanks for the very nice bugreport. This was a typo and is fixed here (oneliner in eme_rsvp.php):

    https://plugins.trac.wordpress.org/changeset/1961692

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.
Scroll to Top