Hello,
I haven't used a table inside a gallery before, but it sounds like you're almost trying to make a sort of dynamic menu? I think there might be a few approaches to what you would like to do:
1) In the visible property of each control in your row, you can put an If condition for each row, or use a switch statement:
If(ThisItem.ID = 3 && !examplebooleanfieldonyourform, false, true),
If(ThisItem.ID = 4 && !anotherexamplebooleanfieldonyourform, false, true)
Switch(
True,
Condition1, Result1,
Condition2, Result2,
Condition3, Result3,
DefaultResult
)
This might not produce the UI requirements you are looking for however, as it may leave you with a row of empty space.
2) The answer that's probably best is to dynamically filter out any row in your table by using a "Filter" operator with conditions on the end:
Filter(
Table(
{ ID: 1, Label: "General Info" },
{ ID: 2, Label: "Contract Info" },
{ ID: 3, Label: "Prime Info" },
{ ID: 4, Label: "Gov't Info" },
{ ID: 5, Label: "T&C/Clause Info" },
{ ID: 6, Label: "Deliverable Info" },
{ ID: 7, Label: "Employee Info" },
{ ID: 8, Label: "Security Info" },
{ ID: 9, Label: "Billing/Invoices Info" },
{ ID: 10, Label: "Subcontracting Info" },
{ ID: 11, Label: "Subcontracting Details" },
{ ID: 12, Label: "Notes/Attachments" },
{ ID: 13, Label: "Signatures" }
),
!(ID = 3 && !examplebooleanfieldonyourform) // Condition to exclude "Prime Info" row if examplebooleanfieldonyourform is false
)
I haven't tried this myself with a table, but I think it might make the options you don't want displayed to disappear.
3) You could put containers inside the gallery for each row to dynamically toggle visibility of each container based on conditions. This would give you more granular control over every aspect but would require writing or copy pasting lots more Power Fx.
Hope this helps! :)