Home › Forums › Add-ons › Flexible Content Field › Add personal description to each FC element › Reply To: Add personal description to each FC element
I was looking through the code to implement this and got this idea. The screen has a new button near the name, this button uses the JS prompt()
command to get the name and save this as a hidden field for the element:
<input name="acf[field_55c66a077308e][56b8f273a6d03][acf_fc_layout]" value="colunas" type="hidden">
<input name="acf[field_55c66a077308e][56b8f273a6d03][acf_fc_title]" value="My description" type="hidden">
If the returned text from prompt()
is blank, it will return to the original name. The other good thing to do, could be putting a button on top of the sortable elements to collapse all.
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!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.