Support

Account

Home Forums Front-end Issues My own Form, how to populate ACF?

Solved

My own Form, how to populate ACF?

  • Hi, great plugin, really nice work!

    I’m building my own Form and when I post it how can I handle the information to populate ACF?

    Is it possible or only displaying by its function?

    Let’s be more objective:

    FORM Front End:
    <form action=”post-custom-type.php” >
    <input type=”text” name=”post-title” />
    <input type=”text” name=”post-description” />
    <input type=”text” name=”post-question” /> <!– This is a ACF Field –>
    </form>

    How can I post it to database please?

    Thanks a lot, I’ve run through all the forum and I couldn’t find a solution.

  • Hi @Zarausto

    To insert a value into the db, please use the update_field function. You can read about it here:
    http://www.advancedcustomfields.com/resources/functions/update_field/

    Please note that this is a PHP function, so your form must submit and then allow PHP to interact with eh $_POST data

    Thanks
    E

  • Thanks a lot! Surely solve my problems.

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

The topic ‘My own Form, how to populate ACF?’ is closed to new replies.