Support

Account

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.