I am banging my head around a tiny equation which gives 'blue underline' error.
The equation is;
If(IsEmpty(Value2.Text), DisplayMode.Disabled, DisplayMode.Edit)
same as;
If(IsEmpty(Value2), DisplayMode.Disabled, DisplayMode.Edit)
This gives me "Expecting a true or false value. The current value may cause unexpected behavior"
Plz tell me I am not going mad.
Solved! Go to Solution.
Figured it out.
The equations I have been trying to put in was under 'visible'.
Instead of that it should go to 'displaymode'.
Now its working.
Tried it already. Still the same error.
This is fustrating 🙂
I think the issue lies within 'Value2' rather than the formula.
Just tested this myself with a textinput field that is called 'Value2' and both statements you listed work without error.
What exactly does Value2 refer to - a variable?
In that case you may need to change the statement to say If (Variable2 = "", DisplayMode.Disabled, DisplayMode.Edit)
Figured it out.
The equations I have been trying to put in was under 'visible'.
Instead of that it should go to 'displaymode'.
Now its working.
It would be nice if MS put a suggestion linking Display Mode and Visibility in the Help notes/field as this is (apparently) something many of us have [still] done by mistake.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
184 | |
51 | |
47 | |
32 | |
32 |
User | Count |
---|---|
264 | |
91 | |
78 | |
68 | |
67 |