• Resolved greensnail

    (@greensnail)


    Hello
    It’s seems what after last update my shortcodes on form’s Succes page stop to working. They are looks as in editor inside.

    [wpdts] for example.

    How I can fixed it ?

    With best regards,
    Vladimir

    • This topic was modified 6 months ago by greensnail.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    May I ask where do you use your [wpdts] shortcode? Is it added in a ACFE Form WYSIWYG field that update the Post Content?

    Or is just used in the post content in the admin, displayed on the front-end, and not updated using the form?

    Thanks!

    Regards.

    Thread Starter greensnail

    (@greensnail)

    Hello Konrad

    As I mentioned before I use it after form is submited. Acctually I use redirect url shortocode to redirect user to another page after form is submited. It works before but now not.

    With best reagrds,
    Vladimir

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the details!

    What do you mean by “I use it after form is submited”? Do you add this shortcode in success message? in post content? Or with a PHP code?

    If you can share a screenshot showing where it is used, it will help me to understand the issue.

    Thanks!

    Regards.

    Thread Starter greensnail

    (@greensnail)

    Yes of course . It’s inside of Succes message. Like at screenshot. I check shortcodes at pages and posts , there they are work properly.
    https://ibb.co/JHDrvy0

    With best regards,
    Vladimir

    • This reply was modified 6 months ago by greensnail.
    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    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.

    Thread Starter greensnail

    (@greensnail)

    Hello Konrad

    Thanks a lot for your respond.
    I haven’t find this redirect action before. It seems like a best way to realize my tasks.
    All the best.

    With best regards,
    Vladimir

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello!

    Just a heads up to let you know the latest ACF Extended 0.9.0.5 version fixed this issue.

    Thanks again for the report, and sorry for the inconvenience.

    Have a nice day!

    Regards.

    Thread Starter greensnail

    (@greensnail)

    Hello Konrad.

    Thanks a lot. All the best.

    Have a nice time!
    Vladimir.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.