You can do this with standard javascript too (ie doesn't require prototype), something like:
var formField = document.getElementById("formFieldId");
formField.onchange = function() {
...
}
-David
On Jul 13, 2010, at 7:48 PM, james_sg wrote:
>
> Hi Levenimeux,
>
> You can create your forms as normal using form widgets.
> Then code with javascript in a ftl file to register event handlers using
> prototype. (Check out prototype's Observe method)
> Include this javascript file after the form in the screen definition.
> Something like
> <platform-specific>
> <html>
> <html-template
> location="component://order/webapp/ordermgr/Your_Js_file.ftl"/>
> </html>
> </platform-specific>
>
> Regards,
> James
>
>
> Levenimeux wrote:
>>
>> Hi all,
>>
>> please I wanna know how to call multiple javascript events in form widgets
>> (onfocus, onblur, onclick)
>>
>> event + action works just fine but I need to add multiple event not just
>> one.
>>
>> thanX in advance
>>
>
> --
> View this message in context:
http://ofbiz.135035.n4.nabble.com/Re-Form-Widget-Javascript-tp2288217p2288217.html> Sent from the OFBiz - User mailing list archive at Nabble.com.