This seems like it should be obvious, but I've struggled with this for a couple of days.
As a programming principle, I like to make the form as "smart" as possible and the resulting Word templates, or XML documents as simple as possible. I need to be able to set a "flag" that would be in the XML data file if certain conditions are met, e.g.,
if (field1.rawValue == "0"){variable1 == "1"};
if (field2.rawValue == "0") {variable1 == "1"}; etc.
The problem that I'm having is that I can't seem to get variable1 to be included in the XML data file that the form creates.
Help! This seems like it should be so simple but I'm baffled.
Bill