Posted on by

Using a “thanks” page with the Record Edit shortcode

The [pdb_record] shortcode is used to show the frontend user an editable record. Normally, when this form is submitted, the user stays on the page and is shown a feedback message.

However, it is possible to send the user to another page when the form is submitted. This page can be used to acknowledge the submission or any other purpose, really. This is how to set that up:

You’ll need a separate page for your record edit thanks page. On that page goes the [pdb_update_thanks] shortcode. Back on the record edit page, you need to add the name of your thanks page to the pdb_record shortcode like this:

[pdb_record action="update-thanks"]

So, we put the name of the thanks page (which in the case is “update-thanks”) in the “action” attribute. Now, when the record edit form is submitted, it will take them to that page.

Dynamic Content on the Thanks Page

You can include content on the thanks page that uses “value tags” to show values from the record. This is just like the “thanks message” that can be shown after someone used the signup form. In this case, the content isn’t in a setting, but is on the page itself, enclosed in the shortcode like this:

[pdb_update_thanks]
Thank you, [first_name] for updating your information!
[/pdb_update_thanks]

That message will only show just after the form is updated, and any record values that you want to include in the message can be placed using the value tags, as shown in the example.

3 thoughts on “Using a “thanks” page with the Record Edit shortcode

  1. Thank you for this, but it is not working for me, seems like a step is missing.

    I created a new page called update-thanks
    The only thing on that page is:
    [pdb_update_thanks]
    Thank you, [first_name] for updating your information!
    [/pdb_update_thanks]

    The only thing on the record edit page is:
    [pdb_record target_page="update-thanks"]

    The record pulls up, and edits, and then stays on the page with the “record updated” message like before. I am missing something simple in there.

    1. Try it with the “action” attribute instead of the “target_page” attribute:

      [pdb_record action="update-thanks"]
    2. That did the trick!!

      Thank you.

Leave a Reply
You have to agree to the comment policy.

3 thoughts on “Using a “thanks” page with the Record Edit shortcode

  1. Thank you for this, but it is not working for me, seems like a step is missing.

    I created a new page called update-thanks
    The only thing on that page is:
    [pdb_update_thanks]
    Thank you, [first_name] for updating your information!
    [/pdb_update_thanks]

    The only thing on the record edit page is:
    [pdb_record target_page="update-thanks"]

    The record pulls up, and edits, and then stays on the page with the “record updated” message like before. I am missing something simple in there.

    1. Try it with the “action” attribute instead of the “target_page” attribute:

      [pdb_record action="update-thanks"]
    2. That did the trick!!

      Thank you.

Leave a Reply
You have to agree to the comment policy.