I have created two custom fields using Advanced Custom Field plugin. I want it to behave like when I insert value in one text field, it should be filled in the another field which is a choice field.
This image is an example where I am inserting Name value and slug value.
I want it to return this.
Post Views: 1
To auto populate select fields in ACF, you can use the load_field function – see more here: http://www.advancedcustomfields.com/resources/acfload_field/
So, let’s say your select field name was marke_name, you could add the following to your functions.php file and this will populate the field every time for you
Create a javascript file with the following (replace both ids with the id of the field, if I’m right it should start with acf-field-)
In your functions.php make sure the js file is loaded in the admin area (in this example the link-acf-fields.js file is inside a js folder within my theme):