Events Made Easy › Forums › Bug fixed or feature request implemented › Req field not filled in and form submits fine
- This topic has 7 replies, 2 voices, and was last updated 10 years, 4 months ago by Franky.
-
AuthorPosts
-
Fri 13 Jun 2014 at 03:19 #52366AnonymousInactive
My form submitted even though there was a required field blank. The req ToC was not checked and it submitted as well. Here is the RSVP template code.
<table class=’eme-rsvp-form’>
<tr><th scope=’row’ width=”200″>Parent or Guardian Name*:</th><td>#_NAME</td></tr>
<tr><th scope=’row’>E-Mail*:</th><td>#_EMAIL</td></tr>
<tr><th scope=’row’>Select Number One*:</th><td>#_SPACES</td></tr>
<tr><th scope=’row’>Student’s First Name*:</th><td>#REQ_FIELD{1}</td></tr>
<tr><th scope=’row’>Student’s Last Name*:</th><td>#REQ_FIELD{2}</td></tr>
<tr><th scope=’row’>Grade for 2014-2015*:</th><td>#REQ_FIELD{3}</td></tr>
<tr><th scope=’row’>Birth Date*:</th><td>#REQ_FIELD{4}</td></tr>
<tr><th scope=’row’>Gender*:</th><td>#REQ_FIELD{5}</td></tr>
<tr><th scope=’row’>Home Address*:</th><td>#REQ_FIELD{7}</td></tr>
<tr><th scope=‘row’>City*:</th><td>#REQ_FIELD{8}</td></tr>
<tr><th scope=‘row’>State*:</th><td>#REQ_FIELD{9}</td></tr>
<tr><th scope=’row’>Zip Code*:</th><td>#REQ_FIELD{10}</td></tr>
<tr><th scope=’row’>Mom’s primary phone number*:</th><td>#REQ_PHONE</td></tr>
<tr><th scope=’row’>Dad’s primary phone number*:</th><td>#REQ_FIELD{11}</td></tr>
<tr><th scope=’row’>Emergency contact number*:</th><td>#REQ_FIELD{13}</td></tr>
<tr><th scope=’row’>Name and relationship*:</th><td>#REQ_FIELD{14}</td></tr>
<tr><th scope=’row’>Home Church/Branch*:</th><td>#REQ_FIELD{15}</td></tr>
<tr><th scope=’row’>Allergies &/or medical conditions*:</th><td>#REQ_FIELD{16}</td></tr>
<tr><th scope=’row’>Agree to Guidelines*</th><td>#REQ_FIELD{17}</td></tr>
<tr><th scope=’row’>Comment:</th><td>#_COMMENT</td></tr>
#_CAPTCHAHTML{<tr><th scope=’row’>Please fill in the code displayed here:</th><td>#_CAPTCHA</td></tr>}
</table>
#_SUBMITFri 13 Jun 2014 at 03:28 #52367AnonymousInactiveActually it looks like this.
<table class=’eme-rsvp-form’>
<tr><th scope=’row’>Parent or Guardian Name*:</th><td>#_NAME</td></tr>
<tr><th scope=’row’>E-Mail*:</th><td>#_EMAIL</td></tr>
<tr><th scope=’row’>Select Number One*:</th><td>#_SPACES</td></tr>
<tr><th scope=’row’>Student’s First Name*:</th><td>#REQ_FIELD{1}</td></tr>
<tr><th scope=’row’>Student’s Last Name*:</th><td>#REQ_FIELD{2}</td></tr>
<tr><th scope=’row’>Grade for 2014-2015*:</th><td>#REQ_FIELD{3}</td></tr>
<tr><th scope=’row’>Birth Date*:</th><td>#REQ_FIELD{4}</td></tr>
<tr><th scope=’row’>Gender*:</th><td>#REQ_FIELD{5}</td></tr>
<tr><th scope=’row’>Home Address*:</th><td>#REQ_FIELD{7}</td></tr>
<tr><th scope=‘row’>City*:</th><td>#REQ_FIELD{8}</td></tr>
<tr><th scope=‘row’>State*:</th><td>#REQ_FIELD{9}</td></tr>
<tr><th scope=’row’>Zip Code*:</th><td>#REQ_FIELD{10}</td></tr>
<tr><th scope=’row’>Mom’s primary phone number*:</th><td>#REQ_PHONE</td></tr>
<tr><th scope=’row’>Dad’s primary phone number*:</th><td>#REQ_FIELD{11}</td></tr>
<tr><th scope=’row’>Emergency contact number*:</th><td>#REQ_FIELD{13}</td></tr>
<tr><th scope=’row’>Name and relationship*:</th><td>#REQ_FIELD{14}</td></tr>
<tr><th scope=’row’>Home Church/Branch*:</th><td>#REQ_FIELD{15}</td></tr>
<tr><th scope=’row’>Allergies &/or medical conditions*:</th><td>#REQ_FIELD{16}</td></tr>
<tr><th scope=’row’>Agree to Guidelines*</th><td>#REQ_FIELD{17}</td></tr>
<tr><th scope=’row’>Comment:</th><td>#_COMMENT</td></tr>
#_CAPTCHAHTML{<tr><th scope=’row’>Please fill in the code displayed here:</th><td>#_CAPTCHA</td></tr>}
</table>
#_SUBMITAnd here is the website and form:
http://www.zionscompass.com/events/2014-08-04/Fri 13 Jun 2014 at 03:29 #52368AnonymousInactive<table class='eme-rsvp-form'> <tr><th scope='row'>Parent or Guardian Name*:</th><td>#_NAME</td></tr> <tr><th scope='row'>E-Mail*:</th><td>#_EMAIL</td></tr> <tr><th scope='row'>Select Number One*:</th><td>#_SPACES</td></tr> <tr><th scope='row'>Student's First Name*:</th><td>#REQ_FIELD{1}</td></tr> <tr><th scope='row'>Student's Last Name*:</th><td>#REQ_FIELD{2}</td></tr> <tr><th scope='row'>Grade for 2014-2015*:</th><td>#REQ_FIELD{3}</td></tr> <tr><th scope='row'>Birth Date*:</th><td>#REQ_FIELD{4}</td></tr> <tr><th scope='row'>Gender*:</th><td>#REQ_FIELD{5}</td></tr> <tr><th scope='row'>Home Address*:</th><td>#REQ_FIELD{7}</td></tr> <tr><th scope=‘row'>City*:</th><td>#REQ_FIELD{8}</td></tr> <tr><th scope=‘row'>State*:</th><td>#REQ_FIELD{9}</td></tr> <tr><th scope='row'>Zip Code*:</th><td>#REQ_FIELD{10}</td></tr> <tr><th scope='row'>Mom's primary phone number*:</th><td>#REQ_PHONE</td></tr> <tr><th scope='row'>Dad's primary phone number*:</th><td>#REQ_FIELD{11}</td></tr> <tr><th scope='row'>Emergency contact number*:</th><td>#REQ_FIELD{13}</td></tr> <tr><th scope='row'>Name and relationship*:</th><td>#REQ_FIELD{14}</td></tr> <tr><th scope='row'>Home Church/Branch*:</th><td>#REQ_FIELD{15}</td></tr> <tr><th scope='row'>Allergies &/or medical conditions*:</th><td>#REQ_FIELD{16}</td></tr> <tr><th scope='row'>Agree to <a onclick="window.open('http://www.zionscompass.com/co-op-guideline-agreement/','name','width=980,height=400')">Guidelines</a>*</th><td>#REQ_FIELD{17}</td></tr> <tr><th scope='row'>Comment:</th><td>#_COMMENT</td></tr> #_CAPTCHAHTML{<tr><th scope='row'>Please fill in the code displayed here:</th><td>#_CAPTCHA</td></tr>} </table> #_SUBMIT
Fri 13 Jun 2014 at 11:53 #52372FrankyKeymasterWhat is the “ToC” field? Is it the “Agree to Guidelines” field?
Fri 13 Jun 2014 at 12:50 #52373FrankyKeymasterI just tried to register on your site, and it seems that none of the required fields (apart name/email) work as expected. I’ll check this out this evening.
Sat 14 Jun 2014 at 01:12 #52374FrankyKeymasterOk, found it: for the detection of required fields, I didn’t take into account the fact that you can now use templates for it too.
So, since I ignored the template, I used the default format for the event when searching for the required fields, which of course doesn’t include those fields.Fixed it in trunk with this:
http://plugins.trac.wordpress.org/changeset/932112Thu 3 Jul 2014 at 07:35 #52541AnonymousInactiveI’m sorry I’m not sure what I’m suppose to do. What is a trunk and what do I do with it? Thanks.
Thu 3 Jul 2014 at 11:18 #52542FrankyKeymasterYes, sorry. Trunk means the development version. But since then, it has been released, so just updating the plugin should be sufficient.
-
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.