Validate/Validation text box length and/or combo boxes contain data

PHOTO EMBED

Sat Jul 23 2022 10:54:03 GMT+0000 (Coordinated Universal Time)

Saved by @gofunk1 #powerapps #validation #combobox

DisplayMode= If(
    IsBlank(varName) Or IsBlank(varName) Or Len(TextInputBox.Text) < 11,
    DisplayMode.Disabled,
    DisplayMode.Edit
)


OnChange= Set(varName, Combobox.Selected) //Sets the variable to the combo box values or record

content_copyCOPY

By setting the OnChange value of a combo box to a variable and checking if the variable contains data or not, you can disable or enable a submit button. The above code also checks that the length of the string in text box is not less than 11