• Resolved koroikoroi

    (@koroikoroi)


    Hi,

    I am using the latest version: 1.2

    I notice that when submitting a post containing invalid custom field values, the submission failed (which is good) but there are two “issues” regarding the error message:

    1. The message always says “Validation failed” even though I have set a different message.

    2. The message only gets displayed next to the failing field, which is okay, but because the field is far from the submit button, I didn’t see the message (thus didn’t realise that the submission failed). I needed to scroll down to the field to see the message. Perhaps, another message can be displayed at the top of the page or somewhere close to the submit button so that the user notices it.

    I am not sure if the above behaviour happens to other people too, but if not, it might be because of my specific settings. I only set server-side validation rules and left the client-side (JS) validation empty, so may be this is what’s causing the above behaviour?

    Thanks

    https://wordpress.org/plugins/validated-field-for-acf/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author doublesharp

    (@doublesharp)

    @koroikoroi both issues have been addressed in version 1.2.1.

    1 – this was accidentally omitted when I refactored to support Repeater fields, the message you see is the default.
    2 – updated UI javascript to display a notification at the top when the validation fails.

    side note, corrected an issue where a form could validated by this plugin but fail the ACF validation resulting in an inconsistent data state.

    Thread Starter koroikoroi

    (@koroikoroi)

    Thanks, that’s quick 🙂

    I’ve updated to version 1.2.1.

    Number 1 was fixed. But I don’t see any change with regard to number 2. Could you please check?

    Thank you

    Thread Starter koroikoroi

    (@koroikoroi)

    Hi,

    Number 2 is fine now. I guess it took some time for the changes to work, possibly due to caching.

    Sorry about that

    Plugin Author doublesharp

    (@doublesharp)

    This might have been related to another issue – the plugin version wasn’t being passed to the javascript issue which could lead to the caching issue you saw. Version 1.2.2 corrects for this.

    Thread Starter koroikoroi

    (@koroikoroi)

    Okay, thanks 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Validation message not displayed properly’ is closed to new replies.