Forums

events option

raivis 19 Jul, 2012
Hi Guys!

I suggest to add one more option to form's elements General options (where are Class, ID, Name etc fields).
And that would be for "events handlers". Something that is already available on Custom Datepicker - Extra options extension.

This would allow to add events like e.g.onblur, onchange, onsubmit etc... events to the element in order to allow JavaScript to do different actions when respective event is called within the element.

Maybe this could be just empty text field option that simply adds respective info into the element tag.

So far I just add the events manually into the form code but then I can not use wizard anymore..

Let me know if you have any questions😉

Brgds,
Raivis
andypooz 19 Jul, 2012
I like it. I always get to the stage that I have to switch from wizard to custom with the form code (never to return). I don't think the wizard will ever give us everything power users need, but this would be a nice addition
GreyHead 20 Jul, 2012
Hi Raivis,

I'd disagree with this suggestion. It's better practice (and easier) to keep JavaScript out of the HTML and set the events directly in the JavaScript using e.g. $('input_id').addEvent('click', function() { . . .

Bob
This topic is locked and no more replies can be posted.