I have a form that if users select certain check boxes, some fields are made invisible. One issue has arisen in that if a user fills in a visible field that is later made invisible because, for example, the user changed his mind on the triggering checkbox, the XML data file still contains the data from the formerly visible field.
1. Is there a method to clear individual field data?
2. If I made the field hidden instead of visible would that impact this issue? I'm still not clear on the distinction between "invisible" and "hidden."
I found the response to my first question after some digging: clearing individual fields is through the xfa.host.reset.Data() method where the parameter inside the parentheses is "fieldname1, fieldname2" etc.
Still seeking a response to the question about the difference between "hidden" and "invisible", though . . . .