Hi,
I would like to use SS validation and when an error occurs have the values that were already input to the form, be shown along with the error. Right now the form is shown but none of the values of the original form (some passed in params and field values) get shown. I searched for this topic and a couple of things came up but I didn't understand if the question was the same as mine. I tried setting a value for the form fields that was comprised of : <?php echo $_POST['name']; ?> but none of the values are apparently being sent back with the new form display. Can anyone help on this?
btw: absolutely GREAT component and support!
I would like to use SS validation and when an error occurs have the values that were already input to the form, be shown along with the error. Right now the form is shown but none of the values of the original form (some passed in params and field values) get shown. I searched for this topic and a couple of things came up but I didn't understand if the question was the same as mine. I tried setting a value for the form fields that was comprised of : <?php echo $_POST['name']; ?> but none of the values are apparently being sent back with the new form display. Can anyone help on this?
btw: absolutely GREAT component and support!
Hi rsie,
There's a Republish Fields option on the AntiSpam tab - I don't know if that works with server side validation but it's worth a try,
Bob
There's a Republish Fields option on the AntiSpam tab - I don't know if that works with server side validation but it's worth a try,
Bob
Hi GreyHead,
That worked like a charm! I'm getting my form fields back, but my params of course are not included. Should I save those to the session, and if so how can I do that so I can recover them on the new form display.
thanks for the quick response--
That worked like a charm! I'm getting my form fields back, but my params of course are not included. Should I save those to the session, and if so how can I do that so I can recover them on the new form display.
thanks for the quick response--
Hi rsie,
Not quite sure what params you've got in there that aren't in form fields - but the answer usually is to make sure that they are in fields - adding a hidden field often does the trick.
Bob
Not quite sure what params you've got in there that aren't in form fields - but the answer usually is to make sure that they are in fields - adding a hidden field often does the trick.
Bob
Yes you are exactly right! I was a little sloppy with my hidden field names, so I changed them and then: still no go...but everything you said made sense and everything else was working so I did a little investigative work and found that using JRequest::getVar like I was doing turned up empty on the error display process. Not sure why this is but when I changed to $_REQUEST var, everything is now working!
There is one thing that is going to trip up my clients however, cuz it already got me too...when the error form is displayed, it also re-publishes the previous captcha, which is now not correct, but the eye doesn't catch it since it's filled in. Is there a way to get the captcha field to reset in this process?
thanks again
There is one thing that is going to trip up my clients however, cuz it already got me too...when the error form is displayed, it also re-publishes the previous captcha, which is now not correct, but the eye doesn't catch it since it's filled in. Is there a way to get the captcha field to reset in this process?
thanks again
Hi rise,
If $_POST works and getVar doesn't then I guess that you are using Joomla 1.0.x - getVar is the Joomla 1.5 equivalent.
I've no idea about the captcha, a bit surprised that doesn't reset. perhaps Max can help with this?
Bob
If $_POST works and getVar doesn't then I guess that you are using Joomla 1.0.x - getVar is the Joomla 1.5 equivalent.
I've no idea about the captcha, a bit surprised that doesn't reset. perhaps Max can help with this?
Bob
I'm using joomla 1.5 so that sounds peculiar. I see the joomla framework api used other places in code I'm using and it was working with Chronoforms for everything other than the re-publish on error mode. Well, it is working now, except for the captcha.
thanks again for the great support.
thanks again for the great support.
This topic is locked and no more replies can be posted.