Support

Account

Home Forums Front-end Issues Can't save repeater fields in acf_form on front end

Solved

Can't save repeater fields in acf_form on front end

  • Greetings,

    I am attempting to use a repeater field on the front end form and can not seem to save the values when posting.

    There are no javascript errors, all other forms and field types are submitting successfully on the front end so no other stray issues, it’s only the repeater field that isn’t playing nice.

    Is this field type specifically supported on the front end?

    I am running ACF Pro 5.1.3.

    Here is my form initialise code

    acf_form(array (
      'post_id' => 'new_post',
      'new_post' => 
      array (
        'post_type' => 'Goals',
        'post_status' => 'publish',
      ),
      'fields' => 
      array (
        0 => 'field_54786b773f199',
      ),
      'submit_value' => 'Save',
    ));

    My post parameters seem to be sending the values

    
    _acf_form=*******
    _acfchanged=1
    _acfnonce=dfc99b4254
    acf[field_54786b773f199]=
    acf[field_54786b773f199][0][field_54786b8c3f19a]=TEST 2
    acf[field_54786b773f199][0][field_54786b9e3f19b]=TEST 2
    acf[field_54786b773f199][5478712cf6142][field_54786b8c3f19a]=TEST
    acf[field_54786b773f199][5478712cf6142][field_54786b9e3f19b]=TEST
    action=acf/validate_save_post
    

    Form Screenshot:

    Form Screenshot

    Have I missed anything or can I provide any more info?

  • GAH! I was setting post type property incorrectly! Please close / delete thread 😀

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

You must be logged in to reply to this topic.