Hi there!
Is it possible for a user to revise the inputs before sending the form. Actually can someone get an overview with her or his inputs before the final submission?
Thanks for a reply.
All the best from Austria,
Manooh<br><br>Post edited by: manooh, at: 2008/03/11 16:41
Hi Manooh,
Yes, but not out of the box. I guess you could send a form to an admin with a link back to another form that triggered membership (or not).
Bob
Hmm.. not sure if my question was clear enough..
I have a form with (more or less) sensible input. If someone fills out the form, she or he should be able to check their input again before the information is sent. Something like a checkout page?
.. or, I didn't get your answer🙂
You suggest a form to fill out that isn't send by email but refers to another (identical) form? But instead of empty inputs you get the data from the previous form?
Manooh
Hi Mahooh,
It's me - it's too late at night . . .
Yes you could do this. Repost the form data on the same form, use a hidden field to show that it's a confirmation. I think that would work OK.
Bob
Many thanks for your help!!
I'm using a "Step-2" button to show the user their inputs again in plain text (so without the input fields) before he can actually submit the form or press a back button where he can change the inputs.
There is still a question in the air😉 How do I get the $_POST data? To post the inputs I have to use the submit button (which emails me the form or does "nothing"). So there is only one submission type. Is it possible to submit a forms data (for Step-2 or the revise of ones input) without doing the emailing (which should only be done after Step-2 when the user finally clicks submit)?
Thanks again!!
Manooh..
Hi Manooh,
There are several ways to get the data. Probably I'd re-use the same form but use PHP to show different results to the user.
You can use showform() to redisplay the form - see how it's done for imagevalidation.
It isn't always as straightforward as this but I'd start with a single form until I absolutely had to got to a second one.
Bob
Hey, thanks for all the time you spend on helping me, you guys are AWESOME!!!!!
And, I have to say, I'm almost there..😉
Hope, that's the last question about my "problem":
Can I stop sending the form somewhere? If I put the showform-function into the php code before sending email, it will still send the form? So, basically, where can I catch a variable after pressing submit to see if the form can continue with sending the email or it should show the form again?
Thanks again,
manooh
In the onsubmit before email, :
<?php
if(something){
showErrorMessage('Sorry');
showform($_POST);
return;
}
?>
<br><br>Post edited by: admin, at: 2008/03/12 00:35
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Manooh,
Yes you are correct. The 'return' only ends the eval() code block. There is nothing after that to prevent the email being sent.
I think it would need a code hack to make this work😟
I'll think about it a bit . . .
Bob
Ahhh, i see.. after a little core hack, the wonder machine seems to work now😉
Many many thanks for the great and fast support to all owls from chronoengine!!
Manooh..
Hi all,
I have the same problem as mentioned above, but I couldn't make this work according to the provided solution(s).
So my quesion is: is there a easier way to check the inputs and the possibility to correct them before sending?
My programming skills aren't that good, so please be patient with me🙂
(I'm using Version V3.1 RC2 in Joomla 1.5.9).
Thanks in advance,
Aram
Hi Aram,
try the validation ? server side validation will help you detect any problems and send the user back with a list of errors found
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Hi Max,
Thx for your quick reply. I believe my question wasn't clear.
I would like to give the visitor a last chance to view his inputs before the actual sending and if needed correct them.
This could be done in the same layout as e-mail template, only with 2 buttons; one to send and one to go back and correct his input.
Could that be done by server validation? And if so, could you please tell me a little bit more about how to do it?
Thx in advance,
Aram
Hi arampro,
You cna do this with what in effect is a multi-page form. The first page is the input, the second page is the display for confirmation (this could be the firstpage with all the inputs readonly).
You need to add some PHP in the Form HTML and OnSubmit boxes to control which version of the form is displayed when. You'll also need to use either hidden fields, or the names of the submit buttons to let you know where you are.
There are a couple of examples in the forums here.
Bob