Form submission redirect to preview custom URL

Support MB Frontend Submission Form submission redirect to preview custom URLResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #37252
    YasmineYasmine
    Participant

    Hi Long,

    After they have submitted a post, I want to redirect to the post preview that is available from the dashboard. What is the dynamic redirect link to achieve this?

    And then I will show conditional buttons on this template if post status is pending and author matches. On here, I would also like to feature a "go back to edit" button, which redirects the user back to the form.

    These links are both available on the MB dashboard, and so I hope I can use them in other cases too!

    Many thanks,
    Yasmine

    #37261
    YasmineYasmine
    Participant

    Ok potentially worked this out. For the edit button, I have it working: https://www.mydomain.org/my_summary_page/?rwmb_frontend_field_post_id=35022 (and I then write the first bit of the link and then use a shortcode to output the post id)

    However, for the preview I am struggling a little. As I need to output the post id within a shortcode: https://www.mydomain.org/?post_type=research&p=35022 almost like 'https://www.mydomain.org/?post_type=research&p='.$post->id.' - how do I do this in an MB shortcode so I have a dynamic redirect?

    #37267
    YasmineYasmine
    Participant

    Resolved.

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