jen
08/27/2021, 10:59 PMjen
08/27/2021, 11:36 PMjen
08/27/2021, 11:36 PMvar prefix = 'custom143flds';
// Get the rows
jQuery('tr[id^="' + prefix + 'row"]').each(function(f) {
// Get the row id.
var row_full_id = jQuery(this).attr('id');
var row_id = row_full_id.substring(prefix.length + 3, row_full_id.length);
row_id = parseInt(row_id) + 1;
var ddid = 'inpt_' + prefix + 'display' + row_id;
jQuery('input[name=' + ddid + ']').val('Disabled');
});
jen
08/27/2021, 11:38 PMjen
08/27/2021, 11:38 PMmichoel
08/29/2021, 11:13 PMClay Roper
09/14/2021, 10:47 PM<displayType>
values, and re-deploy to the environment?jen
09/14/2021, 10:48 PMjen
09/14/2021, 10:49 PMdisableFields()
fn that I run in the browser console, loljen
09/14/2021, 10:49 PMjen
09/14/2021, 10:50 PMfunction disableFields() {
var row = 0;
jQuery('#custom229flds_splits tr').each(function(index) {
if(row > 0) {
var inpt = jQuery("input[name='inpt_custom229fldsdisplay" + row + "']").attr('id');
var hddn = inpt.replace('inpt', 'hddn');
var indx = inpt.replace('inpt', 'indx');
console.log('row ' + row + ' inpt: ' + inpt);
jQuery('#' + inpt).val('Disabled');
jQuery('#' + hddn).val('LOCKED');
jQuery('#' + indx).val(2);
nlapiSelectLineItem('custom229flds', row);
custom229fldsSyncRow(row, false, false, 'custom229fldsdisplay');
custom229fldsRecalcMachine();
}
row++;
});
}
jen
09/14/2021, 10:50 PMcustom229
is specific to my forms but this at least shows the main ideajen
09/14/2021, 10:51 PMjen
09/14/2021, 10:52 PM