D
danlin99
Please help me find what the problem with this if statement is? I have spent
2 days trying to fix it but still nothing. Thanks in advance.
The codes below will not open the business card form with either false and
true value if I have the '== true'
************************************************************
var sourceBusinessCard =
XDocument.DOM.selectSingleNode("//my:myFields/my:business_card_yes_no").text;
//business card order is checked
if (sourceBusinessCard == true)
{
//open business card template
var xBusCard =
Application.XDocuments.NewFromSolution("\\\\everest\\public\\forms\\Infopath
Business Card Order Form.xsn");
}
********************************************************
The codes below open the business card form with both false and true value
if I have the '= true'
************************************************************
var sourceBusinessCard =
XDocument.DOM.selectSingleNode("//my:myFields/my:business_card_yes_no").text;
//business card order is checked
if (sourceBusinessCard == true)
{
//open business card template
var xBusCard =
Application.XDocuments.NewFromSolution("\\\\everest\\public\\forms\\Infopath
Business Card Order Form.xsn");
}
********************************************************
2 days trying to fix it but still nothing. Thanks in advance.
The codes below will not open the business card form with either false and
true value if I have the '== true'
************************************************************
var sourceBusinessCard =
XDocument.DOM.selectSingleNode("//my:myFields/my:business_card_yes_no").text;
//business card order is checked
if (sourceBusinessCard == true)
{
//open business card template
var xBusCard =
Application.XDocuments.NewFromSolution("\\\\everest\\public\\forms\\Infopath
Business Card Order Form.xsn");
}
********************************************************
The codes below open the business card form with both false and true value
if I have the '= true'
************************************************************
var sourceBusinessCard =
XDocument.DOM.selectSingleNode("//my:myFields/my:business_card_yes_no").text;
//business card order is checked
if (sourceBusinessCard == true)
{
//open business card template
var xBusCard =
Application.XDocuments.NewFromSolution("\\\\everest\\public\\forms\\Infopath
Business Card Order Form.xsn");
}
********************************************************