Support

Account

Home Forums Bug Reports Adding iframes or script to ACF Form doesn't save the field

Solving

Adding iframes or script to ACF Form doesn't save the field

    • phuc

    • November 28, 2017 at 12:50 am

    So I use the ACF Form head and ACF Form to create a frontend editor for my customer which works fine.
    BUT when I have a textarea/wysiwyg editor for example, where my customer can add an iframe from google maps or a custom script. The Scripts are removed after saving and the content doesn’t display properly.
    When I add the same content in the backend, everything works fine.

    • Beee

    • October 12, 2018 at 1:33 am

    Ever found a way on how to do it on the front-end ?
    Experiencing same issue.

    • phuc

    • October 13, 2018 at 12:11 am

    Not yet. But didn’t try it again actually.

    • Beee

    • October 13, 2018 at 12:13 am

    After I posted my question, I did 🙂 Well, James form ACF support gave it to me.

    Set kses to false in the form arguments, see https://www.advancedcustomfields.com/resources/acf_form/#parameters.

    This won’t do for me because I want one field specific, not all of them, so I’m gonna solve it differently, but you might be helped with it.

    • phuc

    • October 13, 2018 at 12:16 am

    Thanks a lot, will try that

  • even when i Set kses to false it doesn’t work !!!
    any ideas about how to solve that ?!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

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.