Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

SyntaxError with form

$
0
0

I have a drop down that populates a multi-line text field.

Everything works except on my last paragrah. I can even get it to work if I only include some of the text in this particular paragraph but if I include all I get "SyntaxError: missing } after function body" Anyone have any clue why this would happen? below is my code of it not working:

 

(function () {

 

    // Do nothing if not committed

    if (event.willCommit) return;

 

    // Set up an array to hold the individual paragraphs of text

    var aQuotes = [];

 

    // Populate the array with the paragraph text

    aQuotes[0] = "FISH study using the target probes described above detected normal copy number for chromosomes 3, 7, 9p21, 17.  No evidence of aneuploidy for chromosomes 3, 7, 17 or deletion of the p16 region of chromosome 9 was found in cells present in this specimen.  However, FISH results alone may not be used to make clinical management decisions. Correlation with results from cytology and other relevant tests is suggested."

    aQuotes[1] = "FISH study using the target probes described above detected copy number for chromosomes 3, 7 and 17 within the normal range for this test. However, three out of 142 urothelial cells analyzed were hyperdiploid for chromosomes 3, 7, 9p21 and 17.  Aneuploidy for chromosomes 3, 7, 9p21 and 17 is associated with urothelial cancer. A repeat specimen is requested for reassurance. FISH results alone may not be used to make clinical management decisions. Correlation with results from cytology and other relevant tests is suggested."

    aQuotes[2] = "FISH study using the target probes described above detected the presence of cells with abnormal copy number of chromosomes 3, 7 and 17.  Aneuploidy for chromosomes 3, 7 and 17 has been reported to be associated with urothelial cancer. However, FISH results alone may not be used to make clinical management decisions.  Correlation with cytology is suggested."

    aQuotes[3] = "FISH study using the target probes described above detected the presence of cells with abnormal copy number of chromosomes 3, 7, 9p21 and 17.  Aneuploidy for chromosomes 3, 7, 9p21 and 17 has been reported to be associated with urothelial cancer. However, FISH results alone may not be used to make clinical management decisions.  Correlation with cytology is suggested."

 

 

    // Get the selected item, which is the export value of the selected combo box item

    var item = event.changeEx

 

    // Display the text corresponding to the selected item in the text field

    getField("paragraph_text").value = aQuotes[item];

 

})();

 

 

 

Again if I get rid of aQuotes[3] or if I only include like the first sentence in aQuotes[3] it works.

Thanks!


Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>