Home › Forums › Backend Issues (wp-admin) › Populate Text Fields on Select Field Change › Reply To: Populate Text Fields on Select Field Change
You would need to have 2 different relationship or post object fields.
If you’ve changed it to a post object field then you’ll need to figure out how to get the value of the post object field. Also, it’s been some time since I created that and even the method used for getting the value of the relationship field may have changed.
You would need to either duplicated much of the code, especially the JS parts, or you would need to alter the JS to detect what field is being changed and populate the other fields accordingly.
I don’t have a working example of doing this with 2 sets of fields.
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!
Are you building WordPress sites with ACF and @BeaverBuilder, and wanted to use your ACF Blocks in both the block editor and Beaver Builder?— Advanced Custom Fields (@wp_acf) May 10, 2023
The BB team recently added support for using ACF Blocks in Beaver Builder. Check it out 👇https://t.co/UalEIa5aQi
© 2023 Advanced Custom Fields.