Hidden field prepopulated from DB.

Avatar

Avatar
Validate 10
Level 2
1996_kcv
Level 2

Likes

2 likes

Total Posts

85 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
View profile

Avatar
Validate 10
Level 2
1996_kcv
Level 2

Likes

2 likes

Total Posts

85 posts

Correct reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
View profile
1996_kcv
Level 2

29-09-2011

 

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?

Thank you,

View Entire Topic

Avatar

Avatar
Give Back 3
Level 2
past-tense
Level 2

Likes

9 likes

Total Posts

85 posts

Correct reply

10 solutions
Top badges earned
Give Back 3
Give Back
Validate 1
Boost 5
Boost 3
View profile

Avatar
Give Back 3
Level 2
past-tense
Level 2

Likes

9 likes

Total Posts

85 posts

Correct reply

10 solutions
Top badges earned
Give Back 3
Give Back
Validate 1
Boost 5
Boost 3
View profile
past-tense
Level 2

06-10-2011

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.

- Scott