Support

Account

Forum Replies Created

  • The validation works fine 🙂
    My problems appear because I have made a plugin settings page with ACF select boxes.
    If the box isn’t checked then the required php file will not be loaded

    In my plugin-name.php file I have

    
    if( $hc_custom_options && in_array('Event', $hc_custom_options) ) {
    require_once ('files/acf-event-fields.php');
    };
    

    The validation is on the files/acf-event-fields.php

    Unchecking the select box fires the error

    hope you understand my poor english … and my PHP skills 😉

  • Nice – works fine.
    But I have one problem when I use the validation in a custom plugin of mine.
    Every Time I turn it on and off i received an error

    Undefined index: field_xxx (start date)
    Undefined index: field_yyy (end date)

    How do I fix this?

Viewing 2 posts - 1 through 2 (of 2 total)