Hello,
I hope everyone had a good Memorial Day.
I am still having difficulty wiht this scrip. I added the k.setItems( [[" ", 0], ["Traceability per quality assurance Plan QA1000 Traceability.", 1], ["Traceability per quality assurance Plan QA2000 Traceability.", 2]]); however; the N box still comes up as undefined. I appreciate all the help you have given so far.
//text box for Notes : set text to 9 and multi line
var name = "N";
var type = "text";
var location = [370, 560, 535, 590];
var x = this.addField(name, type, p, location);
x.multiline = true;
x.textSize = 10;
x.textFont = font.Times;
x.charLimit = 76; // only allow two lines of text ** ;
//combo box for notes
var name = "k";
var type = "combobox";
var location = [370, 602, 535, 590];
var k = this.addField(name, type, p, location);//p
k.editable = true;
k.setItems( [[" ", 0], ["Traceability per quality assurance Plan QA1000 Traceability.", 1], ["Traceability per quality assurance Plan QA2000 Traceability.", 2]]);
k.textSize = 8;
//k.fillColor = color.yellow;
k.editable = true;
(function () {
// Do nothing if not committed
if (event.willCommit) return;
// Set up an array to hold the individual text
var aQuotes = [];
// Populate the array with the paragraph text
aQuotes[0] = "BLANK"
aQuotes[1] = "Traceability per quality assurance Plan QA1000 Traceability."
aQuotes[2] = "Traceability per quality assurance Plan QA2000 Traceability."
// 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("N").value = aQuotes[item];
})();
Thank you,
John