I’m creating a custom field of which uses the relationship field format. Things are looking good, however I’m unable load any data because the AJAX request points to the relationship field, and not my custom one.
Here’s the line of code where the AJAX request is defined –> https://github.com/elliotcondon/acf/blob/master/js/input.js#L2786
Is there a way to change this URL for my custom field instance only? I really want to keep using the relationship field JS and CSS if possible.
Thanks!
Hi @beneverard
I don’t think this is possible to do. You will need to duplicate the relationship field and create a new field_type from it. Then you can customize the JS
Good luck
Thanks
E
FYI, I’ve solved this problem by completely copying over the relationship field and then making the modifications I needed.
My “Data Selector” plugin is now on Github, https://github.com/theideabureau/acf-data-selector-field