I have used validation while creating a new entry in the grid which shows a message in case of duplicacy in entered field. But when I use the same validation in the update related action , it shows the duplicacy message as soon as we click on update, even before actually updating it. How to resolve this? I want validation to occur when i enter the data, not when I it automatically loads the data
Discussion posts and replies are publicly visible
You can use a!validationMessage() to show a message on submit.
No, actually, the moment I click on update i can see the validation message although I havent made any changes because the previous value is stored in the record
I think this can be done using a local variable, just initialize the local variable say local!clicked to false and in the saveInto list of button just update the variable to True, and show your validation with a condition based on the value of "local!clicked". Hope this will be helpful.