Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Toggling a section's visibility #434

@jeffleeismyhero

Description

@jeffleeismyhero

I can hide a section with:

FORMTarget *target = [FORMTarget hideSectionTargetWithID:@"discounts-section"];
[self.dataSource processTargets:@[target]];

Similarly, I can show a section with:

FORMTarget *target = [FORMTarget showSectionTargetWithID:@"discounts-section"];
[self.dataSource processTargets:@[target]];

How can I determine if a section is hidden or visible? I want a button that will toggle the section to display or hide.

Additionally, how can I mark sections as hidden initially without resorting to the code above? That doesn't currently seem to be supported.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions