ALPHA : Need help on controlling over validation error message for input fields

Hi Team,

I am getting the validation messages on load of the page like below, but I want control over showing the validation messages on change events.

I want to validate and show validation messages on user input.

Please help me with this.

1.On load I don’t want to show any validation messages for fields, want to validate and show only after user input(On change).

2.I have clear button, on click of the button i will clear the input field values and the fields should go back to actual state(without any validation messages).

3.Is there a way i can enable and disable validations dynamically?

@Eldho @Sam @Simphiwe @Paul_Thomas Please help me on this issue.

Hello @Vignesh-U ,
If you want to apply validations based on your specific conditions, you can use the Validation option under Properties.
There, you can define your condition and provide an appropriate validation message. You can also use regular expressions (regex) for more advanced validation rules.

Hi @Sam My problem is to validate and show validation messages on user input. but it is validating and showing validation message on load, also if I clear the binding variable value it is automatically showing the validation message, I want to control this

1.On load I don’t want to show any validation messages for fields, want to validate and show only after user input(On change).

2.I have clear button, on click of the button i will clear the input field values and the fields should go back to actual state(without any validation messages).

3.Is there a way i can enable and disable validations dynamically?

@Shamnad_KS @Sam @Paul_Thomas @Irfan_Ali @gaurav.pandey

Hi @Vignesh-U ,

 1. Does validation message shows for all inputs or date inputs only ??
  1. When clearing you need to clear all the values of the variable that is bound to your form inputs then it will go back to actual state
  2. You can check this link Useful Code Snippets to Use In Alpha Studio - Community - Neutrinos to find out more about how to set properties on the DOM instance

Hello @Vignesh-U ,
If your page contains other components or custom code, please make sure everything is implemented correctly. For effective debugging, try isolating only the affected component on a separate page and check if the issue still persists

Hi @Simphiwe It shows for all, Even If I clear all variables in the form it is showing validation error. Please help me

Hi @Vignesh-U,

I just confirmed now,
The current alpha form fields components only show validation messages after a change in any added field not on load.
Can you share how you configured your inputs.

The validation error will show when you clear because the inputs are empty.

Hi @Simphiwe

Please find the Inputs config, I have the same config for all 4fields

On Load

Also I find this error in console, but unable to find this element in application

@Vignesh-U you are working on sandbox right, can you share your project name on the chat.