Hi All,
I am reposting this query.
Can you please let me know how to programatically set focus to a Control
(textbox/dropdownlistbox) on InfoPath form using script.
Thanks,
-Reetu
Reetu Agarwal - 23 Mar 2005 21:56 GMT
Hi All,
I finally found the answer on how to set the focus to a textbox in infopath.
var nodeSelText = XDocument.DOM.selectSingleNode("//my:FirstName");
XDocument.View.SelectText(nodeSelText);
Please visit the following URL which explains setting focus in Infopath
http://blogs.msdn.com/infopath/archive/2004/04/07/109189.aspx
Thanks & Regards,
-Reetu