Script Include not returning expected result to on change client script?

KM SN
Tera Expert

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!CS-dp.PNGSI-dp.PNG

1 ACCEPTED SOLUTION

@KM SN 

 

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

View solution in original post

7 REPLIES 7

manjusha_
Kilo Sage

@KM SN 

 

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

Pls have a look once!

 

SS.PNGss-1.PNG

@KM SN 

 

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