[Erp5-users] javascript in forms

Chetan Kumar chetankumar at vsnl.net
Mon Mar 8 11:15:16 CET 2010


Hi all
In a form there is a checkbox which if selected should mean that a few 
other fields are not required.
Is it recommended to add javascript to enable such a functionality? Or 
should this be handled with error message after user saves?
In a previous discussion adding javascript was discouraged (of course 
that was in the context of saving data which was recommended with save 
button alone).
http://mail.nexedi.com/pipermail/erp5-dev/2007-March/000951.html
In my case, creating two forms for selected and not-selected case will 
be an overkill.
Also, please help with the general approach that should be taken where 
temptation to add javascript is there.
Regards,
Chetan




More information about the Erp5-users mailing list