• ranone

    (@ranone)


    Hi,
    I would like that signup thanks page to be the record page but I saw that there isn’t a variable (get or post) passed and the record page returns that there isn’t record found…

    Is there any way to carry around a variable (pid) on the pdb_signup_thanks shortcode?

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author xnau webdesign

    (@xnau)

    This is definitely a complex way to show the record edit form, the [pdb_record] shortcode won’t have access to the newly created record ID.

    The recommended way to do this is to include a link to the record edit form in the signup thanks message (using the [record_link] tag). This way the record edit form can also be easily accessed by people with a private link, you can use the same page for both cases.

    However it is possible, you just need to create a custom template that gets the new record ID and then displays the record edit form using the do_shortcode() function. You can access the new record ID with Participants_Db::$session->record_id();

    Expect this to be complicated, you’re doing it the hard way.

    Thread Starter ranone

    (@ranone)

    The Participants_Db::$session->record_id(); return a bool false value in the signup thanks page..

    I’m investigating to the best way ??

    Tks for now

    Plugin Author xnau webdesign

    (@xnau)

    That function will only return the record id immediately after the signup. Otherwise, the private ID code needs to be in the URL.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Record page as Signup thanks page’ is closed to new replies.