Hello,
Thanks for the details!
I managed to reproduce the issue. In fact, shortcodes don’t work in the success message in the current version. This will be fixed the next patch. In the meantime, you can fix it by yourself following these instruction:
In the file /acf-extended/includes/modules/form/module-form-front-render.php
on line:36
, find this code:
$message = sprintf($form['success']['wrapper'], wpautop(wp_unslash($message)));
Replace it by this code:
$message = sprintf($form['success']['wrapper'], apply_filters('acf_the_content', wp_unslash($message)));
This will fix the issue, and make shortcodes work again in the success message.
As a side note, if you want to redirect the user after the form submission, I would rather recommend to add a “Redirect Action” to your Form (See documentation), instead of using a shortcode in the success message.
This is the most safe way to redirect a user, and it also allows you to use template tags and retrieve dynamic data. For example, if you create a post with a “Post Action”, you can redirect the user to the newly created post with a “Redirect Action” after the “Post Action”, and use in the URL: {action:post:permalink}
.
Thanks, and sorry for the inconvenience.
Regards.