Thanks for the info.
The above is quite complicated and you will have to code this by hand.
It is possible to hook in and modify a select field’s choices. This means you CAN modify the ‘cat’ sub field to reflect all the categories added on the chosen hotel.
Please look into the
acf/load_field filter (see docs) to learn how this is possible. There is also a tutorial (on the docs) that explains how to modify a select field’s choices.
If you want, you can take it a step further and write some jQuery that listens to a change on the hotel select, and then updates the sub fields via AJAX.
I won’t be able to provide any code / help with the above as it is far to custom for this free support forum.
Good luck with the docs,
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!
© 2022 Advanced Custom Fields.