- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2023 03:19 AM
I have few reasons where different reasons belongs to different finding so i am taking priority values of each reason and trying to figure out Highest priority (1 is high priority value) based on it i am setting the value of finding choice.
but info message showing nothing ? need assistance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2023 05:32 AM
You need to test your code by changing the reasons field on the form.
After that go system logs>All>Search with TEXT2>it will show values of array if there is any value.
Share that screenshot
Also ,in your client script replace getXMLAnswer() with getXML(showDetails) add below code in your function
function showDetails(response) { var answer = response.responseXML.documentElement.getAttribute("answer"); alert(answer); g_form.setValue('findings', anwer); }
Thanks,
Manjusha Bangale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2023 04:54 AM
Check is your array contains any values or not by adding below line in your script include before Math.min.apply () method and share screenshot
Add gs.info('TEXT2'+disposition_findings);
If my answer solved your issue, please mark my answer as ✅Correct & 👍Helpful based on the Impact
Thanks,
Manjusha Bangale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2023 05:25 AM
Pls have a look once!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2023 05:32 AM
You need to test your code by changing the reasons field on the form.
After that go system logs>All>Search with TEXT2>it will show values of array if there is any value.
Share that screenshot
Also ,in your client script replace getXMLAnswer() with getXML(showDetails) add below code in your function
function showDetails(response) { var answer = response.responseXML.documentElement.getAttribute("answer"); alert(answer); g_form.setValue('findings', anwer); }
Thanks,
Manjusha Bangale