Question
Vodafone
IN
Last activity: 30 Aug 2022 3:12 EDT
Change Event is not working when we input data in text field
Hi , I have a requirement where I have to show warning on the screen when user is trying to input wrong details which is not present in the DB table .
So to achieve this requirement i have written data transform which will get the valid data from the DB table using a data page and the i'm setting a flag to check whether the input filled is correct , if correct setting the flag to false and if incorrect i'm setting the flag to true .
Now i'm calling this data transform from the section where I have a text input field . So in that the event is change and action is refresh section and calling the data transform in that .
And to show the warning added one section inside that i have a warning label and a visibility condition like when flag is set to true show warning .
After adding this logic when i input wrong data in the text field it will show me the warning only when i click somewhere on the screen . But i want to show warning while inputting some wrong data . How can we achieve this?
Hi @Sagarika18,
Please run the data transform first using run data transform action and then add refresh this section action and try. If this doesn't work, if you are using expression as visibility condition and run visibility condition on client is enabled on warning field then no need to refresh the section as well just run the DT and check
Thanks,
Vinay