Hi Rahul

I suppose you can do something like this:-

1. Have all the values of the fields as request parameters.
2. As you submit check the request parameters values at the xsl before populating the fields in the form.
3. If its empty then go for a call template where the _javascript_ function currently being used does the validation            else populate the values in the fields of the form.


Regards,
Arnab


> Hi,
>
> I'm using cocoon 2.1.8. I am using HTML form inside my XSL's. ( I could
> have used CForms, but at this moment it will be a bigger change for me, as
> I have to change at many places. Too late to make this change. ).
>
> What I need :
> In this case i'm accessing request parameters from the form inside flow
> script function. If any of them is empty i have to send it back pre-filled
> with other choices that user has entered.
> Ex.
> If a form has 5 input fields, and user enters only first two then i have
> to show a error message alongwith already pre-filled choices 1 and 2
>
> Here I'm able to validate and display the error message, but I can't show
> the page with pre-filled choices.
>
> Is there any way for doing this?
> Any inputs and suggestions are welcome.
>
> Thanks in advance,
> Rahul
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


Reply via email to