/* * SetReadOnlyTrue: This script will take all passed fields and updates their readOnly status to true * By: Davis Carlson - Aug 3rd, 2022 * * Input Fields: * * * Invariants: None */ var tc_event; changeValue(TC_Event); function changeValue(TC_Event) { var tcData = JSON.parse(TC_Event); for (var i = 0; i < tcData.length; i++) { tcData[i]['readOnly'] = true; } tc_event = JSON.stringify(tcData); return tc_event; } ############################ To unsubscribe from the NACCU-L list: write to: mailto:NACCU-L-SIGNOFF-REQUEST@LISTSERV.JMU.EDU or click the following link: http://listserv.jmu.edu/cgi-bin/wa?SUBED1=NACCU-L&A=1