Support

Account

Home Forums ACF PRO Two dependant CPT, need help Reply To: Two dependant CPT, need help

  • Hi @sixtyseven,

    Thanks for the post.

    In this use case, I would recommend you make use of the acf/validate_value filter to check if the location exists. You will need to create some logic to query the values in the locations fields and compare them with the entered value.

    If the entered value fails validation then an error message will be printed out and prevent the post from saving.

    Here is a link to showcase this filter: https://www.advancedcustomfields.com/resources/acf-validate_value/