When the form is rendered , I have a text field that is Visible but wrapped in Hidden Subform. You cannot see it unitl you click of the button; Subform is Visible and you can enter data in the field. Works fine.
Can someone explain what happens when this field is prepopulated from database. The Subform that hold field is hidden. Is it going to show data when the form is rendered or you have to click on the button to see it?
Hi 1996, sorry for the late reply.
Alright, like I said, visibility is never affected by an import. If you want to show information in a field, the field has to be visible, and all of the field's parent subforms need to be visible as well. If any of the subforms that the field is nested within are hidden, the field will remain hidden, regardless of whether or not you import data into it.
This behavior is different from binding data to a repeatable subform with an initial count of 0. In this case, so long as the import puts some data into the repeatable subform, it will automatically add enough 'rows' to show everything. Again, if the visibility is set to 'hidden' it doesn't matter if it adds enough rows to include all of the imported data, it will still be hidden. The repeatable subform, and every subform that it is nested within needs to be visible, or nothing will show up, regardless of the import.
In short, hidden subforms/fields will stay hidden, until you programatically tell them not to be. You can have a repeatable subform with an initial count of 0, and it will dynamically add rows to support the imported data.
In your situation, I would have to see your form to see why binding the data didn't make work.
I'm at work right now, but during my lunch break, I'll send you a sample form that shows how I would handle your described situation. You should receive it in around 4 hours.