• Resolved Dennis Dallau

    (@yorlinqnl)


    I have an option field where you can save the success message for submitting a frontend form.

    So in the field where you normally would type something like this: “Thank you for contacting us. We will reply soon.”

    I now have: TEST: {field:booking_setting_success_message}

    After submitting the form only TEST: appears but the message is not…. And I;’m 100% certain there should be some message visible.

    Bug or is there a catch?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback.

    I have an option field where you can save the success message for submitting a frontend form.

    I don’t understand this sentence. An option field is a field that is on an Option Page. If you’re referring to the “Success Message” from the ACF Extended: Forms UI, then it is a setting.

    The template tag {field:my_field} will retrieve the user input from the form. It will only work in the “Success Message” if you don’t set any redirection (if you leave the “Redirection URL” setting empty). That’s because HTTP/PHP Request headers aren’t passed during a redirection (it’s the same for query_vars).

    If you didn’t set any redirection, and the template tag {field:booking_setting_success_message} isn’t working, then you’re targetting the wrong name. Try to use key, or try to add a simple my_field text test field in your form, and try to display it using {field:my_field} (without redirection).

    Hope it helps!

    Regards.

    Thread Starter Dennis Dallau

    (@yorlinqnl)

    Quote: “I have an option field PAGE where you can save the success message for submitting a frontend form.”

    Sorry for the miscommunication…

    Do I understand you comment correctly that field values of an option page can’t be processed within your SUCCESS MESSAGE form option field?

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    In order to retrieve a field from the DB (and not from the current form), you have to use the template tag {get_field:my_field:post_id}. Please see “Cheatsheet” tab in the ACF Extended: Forms UI for more template tags examples.

    If booking_setting_success_message is an option field, then you should use something like: {get_field:booking_setting_success_message:options} (depends if options is the post_id of your option page).

    Regards.

    Thread Starter Dennis Dallau

    (@yorlinqnl)

    SOLVED

    Thanks! That was what I was searching for!

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    I’m glad to see it’s now working.

    If you enjoy ACF Extended, feel free to submit a review. It always helps, and it’s much appreciated 🙂

    Have a nice day!

    Regards.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Bug? >> Shortcode in SUCCESS MESSAGE not working’ is closed to new replies.