Hi All,
I have built an application which has a form with few fields with one of the fields as primary(This entry has to be unique).I have added a logic on form submission, that if on filtering the data source, system finds the value entered on the primary field, A pop up message mentioning it's a duplicate record should come up.
How I did it.
1. Created an alert , it's visibility is based on a variable. Only when the variable is set to true the alert should come up. On app load, the variable should default to false.
2. On form submit. Filter whether the entered value matches the data source, If it does not update the visibility of the variable to true.
The problem is when I try submitting form first time after entering duplicate record, it does not show the alert message. the value of the variable is not set to true. On submitting again it works fine.
Any suggestions why it does not work 1st time?