Validating a input field

Validating a input field

  

How to give a validation to a input field (name) to not allow special characters, integers. It should allow only alphabets and space.

What is the logic?

Hi kavitam,

you can use regular expression

Hello Manjusha,

Maybe you want to give a look into "Input Masks" component here.

This will solve your issue.

Regards,

A good practice is always to check also in server as there could be the action is executed/tampered from other application or other page call the same action. 

Regards,

I

Marco Arede wrote:

Hello Manjusha,

Maybe you want to give a look into "Input Masks" component here.

This will solve your issue.

Regards,


I have downloaded the input masks forge. But I don't know how to use it in my screen. Can you please help me out?

Manjusha Kavitam wrote:

Marco Arede wrote:

Hello Manjusha,

Maybe you want to give a look into "Input Masks" component here.

This will solve your issue.

Regards,


I have downloaded the input masks forge. But I don't know how to use it in my screen. Can you please help me out?

Hi manjusha,

if you are using your personal enviornment then you can install the component from forge and then in the " Manage Dependencies" from the menu, you can use that forge component in your module. And then on the nput where you want to apply validation, just drag and drop the web block of the forge component  and customize it according to you need. Hope so it will help you.


Cheers,

Hassan