You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when the validation comes I get an error for the global address field, it would be nice that it detects what's missing and adjust the response accordingly. Like [address][city]: "The City is required"
Currently I get the following:
array(1) {
["address"]=>
array(1) {
[0]=>
string(93) "The following subfields are required: **Street Address**, **City**, **Zip Code**, **Country**"
}
}
The text was updated successfully, but these errors were encountered:
Interesting idea. Your front-end form is using the exact same validation as what you'd see in the control panel.
You're correct, the validation logic currently just compiles a list of all required fields. But perhaps it should only be reporting back the subfields which are required and invalid.
I'm using a frontend form to populate an Address field (https://plugins.doublesecretagency.com/google-maps/address-field/front-end-form/#basic-input-fields)
But when the validation comes I get an error for the global address field, it would be nice that it detects what's missing and adjust the response accordingly. Like
[address][city]: "The City is required"
Currently I get the following:
The text was updated successfully, but these errors were encountered: