- Mon Jun 10, 2019 5:12 am
#824805
I'm looking for a way to change the default value of a drop-down field (Purpose) based on another dropdown field (Facility). The idea is to auto populate the commonly selected value for specific facility type, and can change later on if ever the actual value is different from the default value.
I tried using the setValue function but it will not allow to change value anymore.
I tried using the setValue function but it will not allow to change value anymore.
Code: Select all
Found the following in wikipedia, however, i can't follow the instructions:
var nRow = $("#GRID_FACILITY").getNumberRows();
for (; nRow >= 1; nRow--) {
if ($("#GRID_FACILITY").getValue(nRow, 2) == 'Term Loan') {
$("#GRID_FACILITY").setValue("For capital expenditures", nRow, 6);
}
}
Code: Select all
getField("field-name").property-name
alert(var_dump(getField("field-name")));
Attachments
PM1.jpg (32.64 KiB) Viewed 6439 times