Support

Home Forums Event Espresso Premium Required Field for "STATE" if left when form is submitted appears blank

Required Field for "STATE" if left when form is submitted appears blank

Posted: July 17, 2017 at 6:42 pm

Viewing 3 reply threads


CentreSupport

July 17, 2017 at 6:42 pm

Hi Support,

We have a registration form issue where if a registrant skips correctly entering their STATE and hits the submit form they are directed back to fill in this required field, which all functions correctly, however when you select the STATE drop menu it remains blank with all the states previously listed now removed, and you are unable to edit this field at all, or complete the registration.
—-
WordPress Version: 4.8

PHP Version: 5.6.27

MySQL Version: 5.6.34

Event Espresso Version: 4.9.43.p

WordPress Address (URL): http://www.centresupport.com.au

Site address (URL): http://www.centresupport.com.au
—-
see event: http://www.centresupport.com.au/events/nsw-silverwater-chaos-to-calm-learn-to-create-engaging-play-enviornments-19-august-2017/
you’ll have to mock register to view the error – but leave the STATE blank hit submit

thanks for your help


Josh

  • Support Staff

July 17, 2017 at 8:37 pm

Hi there,

The State field will actually pull from the value of the Country field. So for example if the Country field has “Australia” selected, then only states from Australia will be selectable in the State field. Since there are a number of Country options there on your site that are not countries (and therefore do not have states) then no options will appear if an invalid “Country” is selected.

This can be fixed by making a note of the invalid/duplicated Country options, then you go to Event Espresso > General Settings > Countries. Then you select one of the non-valid Country options there, and set it to not appear on front end dropdown lists. Then save, then repeat for other options.


CentreSupport

July 18, 2017 at 7:19 pm

Hi Josh, thanks will try that and hopefully that fixes it
regards
Centre Suppot


Josh

  • Support Staff

July 18, 2017 at 8:19 pm

Do. Or do not. There is no try.

Viewing 3 reply threads

The support post ‘Required Field for "STATE" if left when form is submitted appears blank’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso