Hi @Anonymous,
Do you want to restrict the users to only enter values between 1900 to 2050 within Text Input control?
Currently, Validate functionality is not supported within Text Input control, so if you want to restrict the users to enter values between 1900 to 2050 within Text Input control directly, I afraid that there is no way to achieve your needs.
As an alternative solution, please take a try with the following workaround:
Set the OnChange property of the Text Input control (TextInput1) to following:
If(
Value(TextInput1.Text)<1900 || Value(TextInput1.Text)>2050,
UpdateContext({ShowErrorMsg:true});Reset(TextInput1),
UpdateContext({ShowErrorMsg:false})
)
Set the Text property of a Label control to following:
"Your must type values between 1900 and 2050."
Set the Visible property of the Label control to following:
ShowErrorMsg
The GIF screenshot as below:
In addition, you could also consider take a try to set the OnChange property of the Text Input control to following:
If(
Value(TextInput1.Text)<1900 || Value(TextInput1.Text)>2050,
Notify("You must type values between 1900 and 2050.",NotificationType.Error);Reset(TextInput1)
)
Best regards,
Kris