I am having similar problems. I am using the
TextField1.presence = "invisible";
TextField1.presence = "hidden";
to hide the fields. Changing the fields' presence to "invisible" just makes them read only, but does not hide them. Changing the fields' presence to "hidden" does nothing. To make them 'visible' again [even though they are always visible 😞 ], I use:
TextField1.presence = "visible";
I also have a label (a Text object) that I wish to hide and redisplay using the same technics. That was flagged as an error in forms designer, so I put a field and the label in a subform and tried to manipulate the presence of them by changing the subform's presence state. (ie: subformgroup.presence = "invisible";) This is a small step in the wrong direction, because the text field within the subform is no longer read only. The fields behave as desired in the form designer, but when uploaded to LiveCycle, their behavior is as described.
What do I need to do to correct this problem?