Show message from invalidFields
-
I have made some modifications trying to validate that a submitted email hasn’t been submitted before, this part is working fine. What I haven’t been able to manage is the error message that is displayed to the user. No matter what I do the message that is displayed is the default message associated with the “validation_failed” status. The message that i always get is “One or more fields have an error. Please check and try again.” But looking at the Chrome Console I can see the message that I want to display:
{into: “#wpcf7-f187-p51-o1”, status: “validation_failed”,…}
into: “#wpcf7-f187-p51-o1”
invalidFields: [{into: “span.wpcf7-form-control-wrap.email”,…}]
0: {into: “span.wpcf7-form-control-wrap.email”,…}
idref: null
into: “span.wpcf7-form-control-wrap.email”
message: “El correo ya se encuentra en nuestra base de datos.”
message: “Uno o más campos tienen un error. Por favor revisa e inténtalo de nuevo.”
status: “validation_failed”I need to display the one on the “0” index “El correo ya se encuentra en nuestra base de datos”, but I’m getting the one on the upper level of the array. How can I show the other one?
The page I need help with: [log in to see the link]
- The topic ‘Show message from invalidFields’ is closed to new replies.