Hi All,
I have a series of checkboxes and one at the top which does Select All.
The OnCheck on that sets a context var : UpdateContext({AllChecked: true})
The OnUnCheck set the context var : UpdateContext({AllChecked: false})
If the user saves the screen (with the checkboxes on) and then goes back into the screen. I want to use the First Record.Column name and if it is Yes.No = Yes then show the tickbox and if it is Yes.No = No then dont show the tickbox. I want the UpdateContexts to overwrite the value (if it is either true or false).
I am using an WITH statement on the 'default of each tickbox'
With(
First(InspectionItemTPHCollection),
If(
'PHV Licence' = 'Yes or No'.Yes,
true,
AllChecked = true,
true,
AllChecked = false,
false
)
)
This is used so that if it is yes (from the record), show as true, and allchecked as true or false accordingly.
It kind of works, but if we do a selectall (uncheck - it doesnt clear all the checkboxes and it brings back what is saved).
Any idea on how i can craft this WITH command - that is correct ? I am almost there!
Any help would be amazing.