Home Forums Front-end Issues Reset conditional logic hidden acf_form fields


Reset conditional logic hidden acf_form fields

  • Is there a way to reset fields on front end if they are hidden by some conditional logic? Right now, if you have an acf_form with conditional logic, and you go back and change to some option that hides the already filled fields, these fields is in the background and eventually will output in a get_field_objects function.

    Do anyone know a solution for this?

  • unfortunately, no, this is not something that ACF does at this time. It can be done, but you need to do it yourself. It can be done by creating an acf/save_post filter In the filter you would need to get the values of the fields the conditions are based on and then update or remove the conditional fields based on those values.

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

The topic ‘Reset conditional logic hidden acf_form fields’ is closed to new replies.