• Resolved almmello

    (@almmello)


    I would like to update an existing entry not create another one is it possible?

    I imagine something like this:

    [advanced_form form=”form_xxxx” entry_id=”1328″]

    Can you help me, please?

    Thank you,

    Alexandre

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author fabianlindfors

    (@fabianlindfors)

    Hi!

    This is not currently possible in the free plugin. The reason being that the entries are mostly for administration purposes.

    If you need more advanced post creation and editing I would recommend looking into the Pro version. It has these features built-in and supports editing existing posts. This feature is not really related to entries and is best used in combination with a custom post type!

    Hope this helps ??

    Thread Starter almmello

    (@almmello)

    Hi Fabian,

    Is it possible to submit the custom field value to a specific page, instead of creating a new entry, using the free plug-in?

    I have a custom field that is related to a specific page. I can change the field value on the back end (WordPress editor). Is it possible to use your form to change this custom field from the front end?

    Thank you,

    Alexandre

    Plugin Author fabianlindfors

    (@fabianlindfors)

    It is possible with the free plugin but you would need to write a bit of code!

    The first step is to pre-fill your form with the existing field value (allowing it to be edited). You can use the af/field/prefill_value to achieve this: https://advancedforms.github.io/filters/af-field-prefill_value/.

    Next you need to update the field when a form is submitted. For this you can use the af/form/submission hook and af_save_field( $field_name, $page_id ); to save the submitted field to the page.

    Hope this helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Update existing entry’ is closed to new replies.