Select validation form field contents via script

Select validation form field contents via script

Postby dkekesi » Mon May 19, 2014 5:25 am

Hi All,

I need to select the contents of a field on the validation form. By "select" I mean that field text must be highlighted so that existing field contents are overwritten as I start typing.
I need to use this in a scripted validation rule. I tried SendKeys("+{Home}"), but it doesn't seem work.
Anyone has any idea?

Thanks in advance.
Best Regards,

Daniel Kekesi
DocSoft Hungary
Image
dkekesi
Participant
 
Posts: 2569
Joined: Thu Dec 08, 2005 12:56 am
Location: Budapest, Hungary

Re: Select validation form field contents via script

Postby russell@centuryc.com » Mon May 19, 2014 11:38 am

Are you trying to move the cursor to this field as well, or is it assumed this field already has focus? Also, at what point are you trying to do this?
Russell
russell@centuryc.com
Participant
 
Posts: 3374
Joined: Wed May 17, 2006 12:53 pm
Location: USA

Re: Select validation form field contents via script

Postby dkekesi » Mon May 19, 2014 11:41 am

The field has focus. I try to select contents in a scripted validation rule.
Best Regards,

Daniel Kekesi
DocSoft Hungary
Image
dkekesi
Participant
 
Posts: 2569
Joined: Thu Dec 08, 2005 12:56 am
Location: Budapest, Hungary

Re: Select validation form field contents via script

Postby russell@centuryc.com » Mon May 19, 2014 11:56 am

I know you can do some pretty low-level stuff with the ValidationForm series. Perhaps ValidationForm_BeforeFieldGetFocus. I think if you set the field equal to itself, it will do what you want. I do know that trying to make changes in ValidationForm_AfterFieldChanged resulted in doing exactly that (but it wasn't a good thing.)
Russell
russell@centuryc.com
Participant
 
Posts: 3374
Joined: Wed May 17, 2006 12:53 pm
Location: USA

Re: Select validation form field contents via script

Postby dkekesi » Mon May 19, 2014 10:34 pm

Thanks Russel, I'll look into these events.
Best Regards,

Daniel Kekesi
DocSoft Hungary
Image
dkekesi
Participant
 
Posts: 2569
Joined: Thu Dec 08, 2005 12:56 am
Location: Budapest, Hungary


Return to Kofax Transformation Modules General Discussion

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron