Hi
Let me describe my scenario briefly as follow:
1. I have no. of numeric fields (variable in count) available on my form. Lets name them as Weightages.
2. User enters values in those numeric fields (Weightages).
3. Before submitting the form, I want to validate whether the sum of all those numeric fields (Weightages) is equal to 100 or not.
What solution I implemented is that I pasted a hidden field on my form named as TotalCount. On the "PreSubmit" event of my form, I sum up all the Weightages and assign the total value to TotalCount (hidden field). On the "Validate" event of TotalCount (hidden field), I checked teh value of that field should be equal to 100 otherwise, Submit action should be cancelled.
The solution is working very fine. The only problem which I am facing is that I am getting the same validation error message two times.
So what is the solution to get that specific validation error message only once?
Thanks in advance.
synaqvi