Welcome, Guest

custom thank you page on quick mode
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: custom thank you page on quick mode

custom thank you page on quick mode 1 year, 7 months ago #14490

i have created a quickmode form with the last page set as the thank you page. originally i wanted to set a section to be hidden unless the visitor takes a certain action on the form, however it appears that once the form is submitted - the javascript to show/hide the field will be broken

i then tried to add php to the after submit piece, however even when i do something as simple as
echo "hello world";
this does not show on my thank you page. is there a way to get the php to echo on the thank you page?
  • bristweb
  • OFFLINE
  • Junior Boarder
  • Posts: 21
  • Karma: 1

Re: custom thank you page on quick mode 1 year, 6 months ago #14509

Once a form is submitted, adding another form field for the user to complete is not possible -- but you might be able to do that by redirecting your user to a different form for the thank you page, where you could have another field for them to complete. See this KnowledgeBase article for how to link to a different URL after submit:

www.crosstec.de/support/index.php?pid=kn...wentclient&id=27
  • terrywmu
  • OFFLINE
  • Administrator
  • Posts: 527
  • Karma: 8

Re: custom thank you page on quick mode 1 year, 6 months ago #14511

i think you misunderstood my goal

what i am trying to do is give custom thank you pages depending on what the visitor enters during the form

ex:
<?php

if ($gender == 'male')
echo "Thank you Mr. " . $firstName . ' ' . $lastName;
else
echo "Thank you Ms. " . $firstName . ' ' . $lastName;

?>


or

<?php

$score = $ans1 + $ans2 + $ans3;
echo "Your test is complete!";
if ($score >= 90)
echo "You have scored better than 90.  You may download an acceptance certificate <a href="certificate.pdf">here</a>";
else
echo "You did not score high enough to receive a certificate";

?>
  • bristweb
  • OFFLINE
  • Junior Boarder
  • Posts: 21
  • Karma: 1
Last Edit: 1 year, 6 months ago by bristweb.

Re: custom thank you page on quick mode 1 year, 6 months ago #14792

Hi,

the problem is that after a submission you cannot acces the values automatically.

What you would need to do is retrieving the form submission data with some php/sql in the submitted script (you can use php there besides javascript). From there you can fill fields/divs on the thank you page.

I can assist you on that if you encounter problems doint that.

Regards,
Markus
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.30 seconds

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany