Hello,
We require to enforce text input for 2 fields, which are linked to a collection.
When the person wants to proceed and the fields are blank, the alert is shown (to indicate they are required).
However, people are still able to circumvent that by entering spaces. PowerApps picks this up as text and thus does not consider this textfield 'blank' anymore.
Is there a function that checks whether a field includes data (and considers an entry that includes spaces only as 'blank')?
If(IsBlank(textinputTaskLocation), UpdateContext({Alert1: true}));
If(IsBlank(textinputTaskDescription), UpdateContext({Alert2: true}));
If(!IsBlank(textinputTaskLocation), UpdateContext({Alert1: false}));
If(!IsBlank(textinputTaskDescription), UpdateContext({Alert2: false}));
If(!IsBlank(textinputTaskLocation) && !IsBlank(textinputTaskDescription),
Navigate(InspectionScreen1, Fade), false)