• Resolved Allen Chu

    (@allensph)


    I’ve created a page to edit single pod (in frontend ) though url variable named report_id. It work fine, but how to redirect url to single pod itself after save(submit)?

    [pods form="1" name="report" fields="ar_name, ar_department, ar_jobtitle" id="{@get.report_id}" label="Save" thank_you="?p={@get.report_id}"]

    The shortcode works EXCEPT the thank_you part.
    It takes to mydomain/[email protected]_id
    Only the text of magic tag but not the value of it.

    • This topic was modified 6 years, 5 months ago by Allen Chu.
    • This topic was modified 6 years, 5 months ago by Allen Chu.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Jim True

    (@jimtrue)

    Thank you doesn’t support magic tags or special magic tags. You’d need to use the X_ID_X as discussed on this docs page: https://pods.io/docs/code/pods/form/

    X_ID_X will be replaced during the JS AJAX save itself when the submit happens for the item ID being created or updated. It returns the ID and replaces the X_ID_X string. So, you would use:

    thank_you="?p=X_ID_X" instead.

    • This reply was modified 6 years, 5 months ago by Jim True.
Viewing 1 replies (of 1 total)
  • The topic ‘Redirect to current pod after Edit it’ is closed to new replies.