Home › Forums › General Issues › Looking to display 5 ACF fields' values in one field, while adding a post. › Reply To: Looking to display 5 ACF fields' values in one field, while adding a post.
I would probably use a message field because your goal is for copying and pasting.
The easiest way to do this is to create an acf/prepeare_field filter for the message field.
The message field does not need to have any value to begin with. In you filter you would get the values of the other fields and then and the values format $field[‘message’] as you want.
This will only work after a post is saved. I is possible to do this as values are added or selected, but I can’t give you any examples of doing this. You’d need to add custom JavaScript and do quite a bit of JS coding to get the values of the fields as they are updated and then update the message field content.
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.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.