Validations in xml forms

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Validations in xml forms

viswanath
Hi All,

 How to use validation.js in my customized xml form for basic validation, I have gone through some links but it's not working, can any one please suggest me something.



Regards,
Viswanath
Reply | Threaded
Open this post in threaded view
|

Re: Validations in xml forms

Paul Foxworthy
Hi Viswanath,

This thread might be helpful: http://ofbiz.135035.n4.nabble.com/Form-widget-validation-td2234816.html

Cheers

Paul Foxworthy

viswanath wrote
Hi All,

 How to use validation.js in my customized xml form for basic validation, I have gone through some links but it's not working, can any one please suggest me something.



Regards,
Viswanath
--
Coherent Software Australia Pty Ltd
http://www.coherentsoftware.com.au/

Bonsai ERP, the all-inclusive ERP system
http://www.bonsaierp.com.au/
Reply | Threaded
Open this post in threaded view
|

Re: Validations in xml forms

viswanath
Hi Paul,

    Sorry for the late reply, Its working great thanks for your response,but i have one doubt that
action="javascript: new
Validation('editPersonalDetail',  {immediate: true,onSubmit:true}); ">

 'editPersonDetail' refers to form Name  according to my knowledge; if suppose i am writing an customized
java scripts with more than one functions  , how do i call that particular function in my forms.


Regards,
Viswanath
Reply | Threaded
Open this post in threaded view
|

Re: Validations in xml forms

viswanath
Hi Paul,


    Is there any ways to display my xml form validation messages in top of the screen as service error displays



Regards,
Viswanath
Reply | Threaded
Open this post in threaded view
|

Re: Validations in xml forms

Paul Foxworthy
Hi Viswanath,

The article at http://tetlaw.id.au/view/javascript/really-easy-field-validation has suggestions for calling custom Javascript functions using onFormValidate and onElementValidate properties, and also a suggestion for displaying validation messages in one place on the screen.

Hope that helps.

Cheers

Paul Foxworthy

viswanath wrote
Hi Paul,


    Is there any ways to display my xml form validation messages in top of the screen as service error displays



Regards,
Viswanath
--
Coherent Software Australia Pty Ltd
http://www.coherentsoftware.com.au/

Bonsai ERP, the all-inclusive ERP system
http://www.bonsaierp.com.au/
Reply | Threaded
Open this post in threaded view
|

Re: Validations in xml forms

viswanath
Hi Paul,


 Thanks for your response i have gone through that but Xml form validations are printed in div in which that div appears after the each field element which this rule is mentioned any prototype scripts, Is there any way to change the script to display the error messages on top of the screen or any css file to display the div on top of the screens.


Regards,
Viswanath
Reply | Threaded
Open this post in threaded view
|

Re: Validations in xml forms

Paul Foxworthy
Hi Viswanath,

I don't know of a simple way, but if you create a div at the top of the screen and within it you have a set of elements with names of the form "advice-" as described in http://tetlaw.id.au/view/javascript/really-easy-field-validation, that might work.

Cheers

Paul Foxworthy

viswanath wrote
Hi Paul,


 Thanks for your response i have gone through that but Xml form validations are printed in div in which that div appears after the each field element which this rule is mentioned any prototype scripts, Is there any way to change the script to display the error messages on top of the screen or any css file to display the div on top of the screens.


Regards,
Viswanath
--
Coherent Software Australia Pty Ltd
http://www.coherentsoftware.com.au/

Bonsai ERP, the all-inclusive ERP system
http://www.bonsaierp.com.au/
Reply | Threaded
Open this post in threaded view
|

Re: Validations in xml forms

viswanath
Hi Paul,

    Thanks for your valid suggestions, Its done.



Regards,
Viswanath
Reply | Threaded
Open this post in threaded view
|

Re: Validations in xml forms

ershad
hello viswanath,
I am facing same problme here.
Could you please give me an example of xml form validation.


regards,
Ershad