Results 1 to 1 of 1
2006-11-07, 12:57 #1
- Join Date
- Mar 2005
- Kent, England
- Thanked 0 Times in 0 Posts
InfoPath - changing views (Office 2003)
Can anyone help? I have a control in place place that forces the user to click on a checkbox, the code below identifies the value of the checkbox and should then change the default view . The code is below:
strValue = XDocument.DOM.selectSingleNode"//my:Change/my:ChangeSubmit").text
if (strValue.text = "false")
XDocument.ViewInfos("Main View").IsDefault = true;
if (strValue.text = "true")
XDocument.ViewInfos("TUG View").IsDefault = true;
The value (strValue) is correct and is giving me a true or false text value via the alert. The problem I am having is that the "If" statement is not
recognising the value.
Any suggestions greatly appreciated.