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/
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.