
Hi
I have four checkboxes and a TextInput.
I want to ensure that
- at least one checkbox is checked
- if cbQuestion4 is checked then tiBasisForRequestingAssistance must contain text.
I'm failing horribly with my attempt below.
Any ideas?
Thanks
P
If(cbQuestion1.Value || cbQuestion2.Value || cbQuestion3.Value || (cbQuestion4.Value && Len(tiBasisForRequestingAssistance.Text) > 0),
DisplayMode.Edit
,
DisplayMode.Disabled)
Hi @pmwhelan ,
From what you posted
- at least one checkbox is checked
- if cbQuestion4 is checked then tiBasisForRequestingAssistance must contain text.
there is nothing wrong with your logic and it should be in Edit mode if one of these conditions is met
If(
cbQuestion1.Value ||
cbQuestion2.Value ||
cbQuestion3.Value ||
(
cbQuestion4.Value &&
Len(tiBasisForRequestingAssistance.Text) > 0
),
DisplayMode.Edit,
DisplayMode.Disabled
)
What is happening when you satisfy one of the conditions ?