alert message is triggering twice and not clearing the value second time in the workspace

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-09-2024 12:27 AM - edited ‎10-09-2024 12:29 AM
Hi Team,
I have a requirement where the sample size is a string field and It should take only positive numbers. I am using the onChange client script for the 'sample size' field. If I use negative numbers or alphabets or alphanumeric then the error message should come. the below script is working in native view but whereas in workspace alert message is getting twice and not clearing the value on same page second time also.
- Labels:
-
Agent Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2024 04:39 AM
Hello,
Could you please conduct a test? Instead of using g_form.addErrorMessage(), I would appreciate it if you could utilize 'alert' for testing purposes. The link provided below explains the same concept you are attempting to address.
Suresh.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2024 04:45 AM
Yes @ersureshbe @ I used alert also.. still it is coming twice and not clearing the value.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2024 07:47 AM
Hi, Did flush the browser cache and test it or try the same for some other browser?
Suresh.