I want display the text in read when submit button is click. The error should only display if value enter into the text box is greater than value in the label above(Which is minimum value)

I want display the text in read when submit button is click. The error should only display if value enter into the text box is greater than value in the label above(Which is minimum value)
Hi @codeworks ,
On your button click, create a Variable
If(
Value(YourTextBox.Text) > Value(YTourLable.Text),
UpdateContext({varError: true},
SubmitForm(FormName),
UpdateContext({varError: false}
)
and the Visible on the warning
varError
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps