I’m a bit confused about your statement:
For the Relationship field I would like to limit the number of items that the user can add to the right to only one item instead of multiple items. I know through the UI you can set a max number of records to return, but this is not what I am trying to figure out.
The max UI option is to limit the number of items allows to be added.
The jQuery load code is going to be pretty complex. I’ll try to find some time to write up a tutorial, but can’t guarantee I will be able to help you with this any time soon.
Perhaps you could read up on jQuery docs regarding .load() and .on()
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!
The ACF site is currently experiencing some issues.— Advanced Custom Fields (@wp_acf) September 21, 2022
We apologize for the inconvenience and we are working hard to get it back up and running as soon as possible.
© 2022 Advanced Custom Fields.