Hi all, I have a target start date, target end date, and actual start and actual end date. Is there a way to validate the date upon user clicking on a date instead of adding the validation on the save button?Many thanks!
Hi @Siaming Ming, yes it is possible, as @ABHIJITH G and @Pawan Parmar has mentioned, first create a OnChange action for your date input then apply the required logic and depending on the condition you can set the valid property of the input, for this you need to assign NameOfInput.Valid property (refer to the image below). Similarly you can also set the validation message property as well for custom error message for different conditions.
ThanksGitansh Anand
Hi @Siaming Ming ,If you are using input widgets for the StartDate and EndDate, you can use the OnChange event of the widget to validate. It will run the action for validation each time during a change is happens in the widget. There are more ways to do this,It would be helpful to understand if you could share more details about how you want to implement this.Thanks
Hi, it is an input date. Will it be available to highlight the widget in red if the input is invalid?
Hi
if you are using date input then try to write validation logic in OnChange Event of the input.
or if you are using DatePicker then write validation Logic on OnSelect Event Handler.
Thanks
Hi, is it possible to highlight the widget in red whenever the input is invalid?