3281
Views
3
Comments
Check for Null Value
Question

Hi Community,

How should I validate if my input is empty (Null Value) upon submission and show a warning message about the Null value? 


2022-02-28 05-37-25
Ronny

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."
2023-04-07 07-55-02
Krushna Mantri

Hi Alvin,

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

2019-07-26 07-21-47
Abdul quadir Saifee

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

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.