Support

Home Forums Event Espresso Premium State field with 0

State field with 0

Posted: July 5, 2017 at 1:31 am

Viewing 1 reply thread


oneofmany

July 5, 2017 at 1:31 am

Hi I followed the code that was advised on this thread
https://eventespresso.com/topic/problem-with-mandatory-state-field-in-pay-by-credit-card/

So that we had a free form field for the billing state, not a drop down.

However like on that thread the form now has a 0 in the state field as default. In the above thread, it said this got fixed though. How do I fix it on my site?


Tony

  • Support Staff

July 5, 2017 at 7:19 am

Hi there,

Rather than the code posted in that thread, I recommend using the snippet available here:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/checkout/mn_billing_form_state_and_country_text_inputs.php

That should prevent the 0 showing in the state field.

Viewing 1 reply thread

The support post ‘State field with 0’ 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