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

    (@doublesharp)

    Hi @belenguer,

    Can you let me know what versions you are using? PHP, WordPress, ACF, and Validated Field should do it. Before I can debug I also need to know what type of uniqueness you are applying, as well as the field type you are validating.

    Thanks!

    Justin

    Plugin Author doublesharp

    (@doublesharp)

    @belenguer – I took a look and it appears that an update to ACF broke the error handling for Validated Field. The validation javascript provided by ACF is looking for a DOM element that is not being echoed by the wrapper code, so it isn’t able to append the error message.

    I’ll push an update shortly, but in the meantime if you want to patch it yourself check out validated_field_v5.php and in the render_field() function look for // wrapper for other fields, especially relationship. You will need to update this to look like:

    echo "<div class='acf-field acf-field-{$sub_field['type']} field_type-{$sub_field['type']}' data-type='{$sub_field['type']}' data-key='{$sub_field['key']}'><div class='acf-input'>";
    echo apply_filters( 'acf/render_field/type='.$sub_field['type'], $sub_field );
    echo "</div></div>";
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Don't Show message for unique field’ is closed to new replies.