Hello Community,
I want a button to be enabled only when 3 conditions is met:
- Date Picker - Date picked must not be before today's date
- Text Input - There must be words
- Input Pen - Must have scribble
Below is my code
In the App open form OnSelect:
Set(varRecord2, ThisItem); Set(varShowSignOutForm, true); Set(varPen, PenInput1.Image); Set(MyDate,Today()); Set(varDateError, false); Reset(TextInput2); Reset(PenInput1);
Button DisplayMode:
If(Len(TextInput2.Text)=0 || varPen = PenInput1.Image || 'Planned Return Date picker'.SelectedDate<MyDate,DisplayMode.Disabled, DisplayMode.Edit)
Here is the outcome:
Below button should not be enabled:

Below Button should be enabled:

I have tried changing || to && but is still doesn't work.
Please help