Events Made Easy › Forums › Bug fixed or feature request implemented › Dynamic custom fields populated based on #_SEATS only writes the last set
- This topic has 3 replies, 2 voices, and was last updated 6 years, 1 month ago by Franky.
-
AuthorPosts
-
Tue 23 Oct 2018 at 23:33 #58583AnonymousInactive
I am stumped in trying to get additional info in sets based on #_SEATS.
In a nutshell:
https://i.imgur.com/vJXWsSe.png
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.Tue 23 Oct 2018 at 23:37 #58584AnonymousInactiveFor 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
Let me know if there is anything else I should show you.
Tue 23 Oct 2018 at 23:52 #58585AnonymousInactiveFrom 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
This is what I see when submitted:
https://i.imgur.com/U7UjEHI.png
Wed 24 Oct 2018 at 00:36 #58586FrankyKeymasterThanks for the very nice bugreport. This was a typo and is fixed here (oneliner in eme_rsvp.php):
-
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.