• Resolved JackGraal

    (@jackgraal)


    I’ve created a frontend form to save a report card as a custom post type. This report has questions like YES/NO which conditionally display another field to describe something.

    When the report form is submited, data from fields displayed conditionally is not saved to the custom post acf fields – but not always. Sometimes it’s saved, and sometimes it isn’t.

    I’ve also checked the option to save the fields’ data as post editor content and also to send it in an e-mail notification – the missing data is correctly displayed there.

    • This topic was modified 4 years, 8 months ago by JackGraal.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback. If there is something I learnt as a dev it is that “random” doesn’t exists in code. You have to isolate the problem to understand where it could come from. Please make sure you’ve checked all fields in your “post Action” in the save tabs, otherwise ACF fields values won’t be correctly saved.

    When you setup an “E-mail Action”, you’re probably using template tags like {fields} or {field:my_field}. Those template tags will retrieve the actual input that has been set by the visitor during the submission. Your problem seems to be related to the saving process of those ACF fields, which is different.

    Can you please provide a screenshot of your “Post Action”, see if everything is correct?

    Regards.

    Thread Starter JackGraal

    (@jackgraal)

    Here’s my post action

    Every field is checked.

    • This reply was modified 4 years, 8 months ago by JackGraal.
    • This reply was modified 4 years, 8 months ago by JackGraal.
    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Okay it looks like the configuration is okay. So, which field isn’t saved? Does the field is conditionally displayed? If the field is not displayed due to condition, then it is normal that it is not saved.

    Have you tried to setup a simple form with only one field that is conditionally displayed, see if you can isolate the problem?

    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fields displayed conditionally are (randomly) not saved via form’ is closed to new replies.