How to validate single input field without a button
Application Type
Reactive

Hello,

I'm looking for a solution on how to validate a single input field that takes email as a value without a button. I have searched alot about this and only found solutions that contain a button. How is this done without a button? OnChange event makes it, so it displays error message every single keypress. Im looking to make it so it only does the validation when user is not "focused" on that certain input field.

Cheers.

mvp_badge
MVP
Solution

Hi @Ronivil ,

You can use OnBlur event it will work when you lose focus from the input.

 

Solution

Hi Ronivil ,

Please find attached oml file and check it by below url

https://rahul-jain-doitlean.outsystemscloud.com/Application/EmailValidation

Hope this will help you :)

Rahul Jain


WithOutButtonValidation.oml

Hi Ronibil,

You can use onblur event to apply your validation.


Thanks

mvp_badge
MVP
Solution

Hi @Ronivil ,

You can use OnBlur event it will work when you lose focus from the input.

 

Hi Ronibil,

You can use onblur event to apply your validation.


Thanks

Hi Ronibil, 

Please find the attached oml as per your requirements.

Thanks

Vinod

SampleApp.oml

Solution

Hi Ronivil ,

Please find attached oml file and check it by below url

https://rahul-jain-doitlean.outsystemscloud.com/Application/EmailValidation

Hope this will help you :)

Rahul Jain


WithOutButtonValidation.oml

Hello and thank you all for your answers. I got it working, the onblur handler worked. I have  to say that "onblur" isnt the greatest naming for this kind of events.

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