How do I automatically tab

R

RWorker

I am trying to automatically tab (go to the next control) after a 3 digit
area code has been entered.
 
S

Shiva (GGK Tech)

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.
 
R

RWorker

Thanks, I will try it

Shiva (GGK Tech) said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top