Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / September 2007

Tip: Looking for answers? Try searching our database.

How do I automatically tab

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RWorker - 06 Sep 2007 19:16 GMT
I am trying to automatically tab (go to the next control) after a 3 digit
area code has been entered.
Shiva (GGK Tech) - 07 Sep 2007 07:24 GMT
Hi RWorker,
Can you try below this code in onAfterChange event of that field.
var nodeValue = XDocument.DOM.selectSingleNode(“XPath of your field”).text;

if(nodeValue >100 && nodeValue < 1000)
{
    var focusFieldNode = XDocument.DOM.selectSingleNode(“XPath of where do you
want to set the node”).text;

    XDocument.View.SelectText(focusFieldNode, 1);
}

Hope this helps you.
Signature

Shiva
http://www.ggktech.com

> I am trying to automatically tab (go to the next control) after a 3 digit
> area code has been entered.
RWorker - 07 Sep 2007 16:22 GMT
Thanks, I will try it

> Hi RWorker,
> Can you try below this code in onAfterChange event of that field.
[quoted text clipped - 12 lines]
> > I am trying to automatically tab (go to the next control) after a 3 digit
> > area code has been entered.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.