Home › Forums › Add-ons › Repeater Field › Linking repeater with another post › Reply To: Linking repeater with another post
Hi @tarun5585
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,
Thanks
E
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.