cancel
Showing results for 
Search instead for 
Did you mean: 

How to put javascript validation in the text form ?

Former Member
0 Kudos

Hi,

I would like to validate 1 of the field in the interactive form. where i can put the javascript validation script ?

f.setAction(

"Validate",

u2018AFRange_Validate(true, 0, true, 100)u2019

);

and also can i force setfocus() in the formal javascript in the interactive forms ? so if the validation not correct the user cannot quit from the field.

Thank You and Best Regards

Fernand Lesmana

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Use the exit event.

You can set focus to the fields as


xfa.host.setFocus(xfa.form.form1.TextField);

Kind Regards

Mukesh

Answers (0)