Hi Community,
How should I validate if my input is empty (Null Value) upon submission and show a warning message about the Null value?
Hi Alvin,
In my case, I did the following checks and assign the validation message if you use manual validation. Hope that helps.
If ( AppointmentUser.TypedValue = NullTextIdentifier() and NameOnBehalf = NullTextIdentifier() )
AppointmentUser.ValidationMessage = "Please enter the name."
As your storing input to NameonBehalf(Text) variable, in Submit action you can add a check (if condition)Trim(NameonBehalf)=""
if it is true then show the message like Please enter Name before submit, please check below SS:
Hope it will help you
Hi,
Why you not use is mandatory property of Input controls to check if they are empty.
this property will check on client side. Also after setting this property you can check if formisvalid on server to check and provide custom messages to user.
Please check below link:
https://success.outsystems.com/Documentation/11/Developing_an_Application/Design_UI/Forms/Validate_the_fields_of_a_form