issue with setfocus on mandatory fields not filled in

Avatar

Avatar

patpai

Avatar

patpai

patpai

17-11-2014

Good morning everyone,

Im playing this morning with the Setfocus on mandatory fields not filled in yet and it works almost perfectly. Im refering to the option under forms properties-> form validation where you set it to "set focus".

This works great but my issue is that inside my PDF, its split into 2 pages 1 for Eng 1 for Fr language.

When i start my Eng page and fill it in but ommit some required fields, the setfocus goes straight to the appropariate field and gives it focus so my user doesnt have to to look thru all the long page before locating the right field.

But if instead, my Fr page is used first and i do the same, when i do my submit, i get the required field message but NO Automatic focus to the appropriate field.

This is strange, now im testing a bit here and i think it my be because between those to pages, all my fields are set as a GLOBAL FIELDS so that if i enter First name in English, and switch to Fr, i will see the name pop under 'Nom' in French.

Im wondering, if maybe instead of using the SET FOCUS approach available from Adobe, i create (via javascript) my own setfocus on a required field.

So can someone point me in the right direction java code wize or explain maybe why this is not working and what i can do to corect this

Either way, im ok with this.

Thx alot,

PAtrick

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar

kvdvijaykumar

Avatar

kvdvijaykumar

kvdvijaykumar

24-11-2014

Hi Patpai,

Can you mail me the form @ kvdvijaykumar@gmail.com

Thanks,

VJ

Avatar

Avatar

_Nith_

Avatar

_Nith_

_Nith_

21-11-2014

drop your form to my inbox: nith.mof@gmail.com

let me take a look.