• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Show form again with filled in values

Show form again with filled in values 11 years 2 months ago #26515

I was wondering if this is possible;

A user fills in the form, then after submitting (and clicking the continue button), shows the form again with filled in values of the previous.
Shortly: I would like to pre-fill fields with values of the previous form.

Is it is possible with $_POST["form"] or maybe only via the database?
The administrator has disabled public write access.

Show form again with filled in values 11 years 2 months ago #26549

In form properties >> tab form info >> submission you have the option for a thank you message. Enable this and you can get your fields bij typing in code like this: {Name:value} where name is the name of your desired field.

Hope this helps, its quite easy!
The administrator has disabled public write access.

Show form again with filled in values 11 years 2 months ago #26613

Yes, but those will give me the values on the "thank you" page...but I need a thank you page, then a button that leads me to the form again, with the values filled in before.

I found a bit of a workaround;
-Create your RSForm (1);
-Disable thank you message and button and no URL here.
-Turn on Silent Post
-Create a blank thankyou.php page and lead silent post to this page.
-Make a form (2)in HTML/PHP with fields you want to keep for the next form
-Make a submit button like; "Fill in another form"
-In <form action=""> ise URL of your RSform (1)
-In RSForm, for fields you want pre-filled;
//<code>
return $_POST["FIELDNAME"];
//</code>

Its a bit too much work.
Im gonna try it with the thank you page. :S
The administrator has disabled public write access.

Show form again with filled in values 11 years 2 months ago #26615

OK. this is a bit easier;

In scripts->thankyoumessage;

$thankYouMessage= '
<form id="[ANYTHING]" action="[URL_OF_THE_FORM]" method="post">
<input name="Name" value="'.$_POST["form"]["Name"].'"/>
<input type="submit" name="fill in another form">
</form>';

THen use the same //code as above
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!