cancel
Showing results for 
Search instead for 
Did you mean: 

WAD-How to access onblur event of the webitem input field

Former Member
0 Kudos

I would like to write some javascript code for the onblur event of input_field webitem.

also, For a command button, is there any way that I can combine both a Sript function as well as wizard Instruction commands?

Any help is appreciated!!!!!!!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Madhu,

To combine a wizard instruction with a custom javascript, do the following:

1) Add a script item in your template

2) Edit the javascript for that script item by using the wizard. There's a button to do that

3) Edit the javascript function or call it from your custom function.

There's no standard way to access the onblur even for an input field. You will have to find the ID of the input field that you are interested in by viewing the HTML source in the browser and then use javascript to attach your custom code to that onblur event of that field.

Hope this helps.

Cheers,

Emmanuel

Former Member
0 Kudos

Emmanuel,

Thanks for the tip.

I used the script object to generate a function using the wizard.

Then edited that function to add my javascript code to it. Then called it from a command button bypassing the onblur event logic.

Do you think we can create a function with the same name as the one listed against the onblur event in the generated HTML and add custom logic to it? I will try that later and let you know

Thanks very much Though.

-Madhu

Answers (0)