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.
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?
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.
SOLVED
Thanks! That was what I was searching for!
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.