• When I don’t fill a required field and I press the button to register a mensagem is shown to fill all required field.

    I want to call a validation before it call that message. The “wpmem_pre_validate_form” is called after this message.

    How could I call it before?

    Have a good day and thanks very much.

    Pablo

Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    I want to call a validation before it call that message. The “wpmem_pre_validate_form” is called after this message.

    How could I call it before?

    If you want to do something before the form is validated, wpmem_pre_validate_form is the earliest. This comes before required field messages are run.

    Keep in mind that the form uses HTML5 field types, so if a field is required and left blank, HTML5 will display a message before the form is even submitted, so you won’t be able to get something before that.

Viewing 1 replies (of 1 total)
  • The topic ‘Validation and mensagens’ is closed to new replies.