Avatar

Level 1

Srini,

I appreciate the response. Maybe I am not understanding the count or underscore features. From my understanding, if the "count" is 1 then the subform is visible. In that case, the user can see the question and answer it as a required field. My problem is the subform is not visible (count of 0), but can be accessed using the underscore.

Maybe this simple case will clarifiy the problem:

Q1. Do you have a favorite color?

Radio: Yes/No

If "Yes" {

Q2a. What is it?

Text: {required}

}

if "No" {

Q2b. Why not?

Text: {required}

}


Both Q2 fields are hidden until Q1 is answered and then only the  appropriate branch shows. So, if they answer "Yes" to Q1, I need the "No" branch text field to no longer be required and vice versa.

So, "Yes" would have form1.form._Q2a.count as 1 and form1.form._Q2b.count as 0. I would think something like form1.form._Q2b.Text (or ._Text) would be a valid reference and I could change the "mandatory" property as I need. I've tried using the direct reference and using xfa.resolveNode to no avail.

Thanks,

Mark