- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
You can include an if statement in the click event of the checkbox. This will look at the value of the checkfield (1 = on; 2 = off). Then depending on the value it will make the associated subform either visible or hidden (excluded from the layout). I have wrapped each section in its own subform (positioned) which makes it easier to reference.
if (this.rawValue == 1)
{
flowedSubform.materialsManagement.presence = "visible";
}
else
{
flowedSubform.materialsManagement.presence = "hidden";
}
Taking this further, you can wrap all three subforms in a flowed subform and save the file as dynamic. This way if a subform is hidden, the remaining subforms will take up the space.
Hope that helps,
Niall
Views
Replies
0 Likes
Total Likes