[Plugin: TDO Mini Forms] redirect with javascript:history.go(-1)" (3 posts)

  1. to_ul
    Posted 7 years ago #

    is there a way to redirect the user after they had submit a post to where he came from?
    like Go back only automatic.
    cheers wp-crowd

  2. the_dead_one
    Posted 7 years ago #

    Yes you could.

    If you use the Text widget to add a new field to the form that contains the URL they came from. The Text widget can execute PHP so you can grab it from $_SERVER['HTTP_REFERER'].

    Then use an Append to content widget to store it in a Custom Field on the post. (Also supports php).

    Then in "messages" for the form, modify the message for thanking the user for submitting a post with some javascript that redirects to the contents of the custom field (again you can use PHP in any of the customisable/hackable messages).

  3. to_ul
    Posted 7 years ago #

    holaaaa, thank you - i try my best ;)

Topic Closed

This topic has been closed to new replies.

About this Topic