Uncaught TypeError: Cannot read properties of null (reading 'style') when Cloning a record
Posted: Mon Oct 13, 2025 7:34 pm
When I am in the Edit form and viewing a record:
1. I click "Clone"
2. Click "Save"
OBSERVE:
Contents of Edit js:
I recently added a Display object that displays the current record ID in the Edit form:
The object ID is: 'myrecordnumber'
The display SQL is:
I can create NEW records without any problems.
1. I click "Clone"
2. Click "Save"
OBSERVE:
Code: Select all
Uncaught TypeError: Cannot read properties of null (reading 'style')
at nuSetBrowseColumns (nuform.js:4960:12)
at nuDragTitleEvents (nucommon.js:2150:2)
at nuBuildForm (nuform.js:140:1)
at Object.successCallback (nuajax.js:193:4)
at c (jquery-3.7.1.min.js:2:25304)
at Object.fireWith [as resolveWith] (jquery-3.7.1.min.js:2:26053)
at l (jquery-3.7.1.min.js:2:77782)
at XMLHttpRequest.<anonymous> (jquery-3.7.1.min.js:2:80265)
Line 4960 of nuform.js:
nucell00.style.zIndex = '2';
Code: Select all
if (nuIsNewRecord()) {
// Set the value of the select object
nuSetValue('pk_finalDoughIngred1','sourdough starter');
nuSetValue('pk_finalDoughIngred2','water');
nuSetValue('pk_finalDoughIngred3','salt');
}
The object ID is: 'myrecordnumber'
The display SQL is:
Code: Select all
select table1_id from table1 where table1_id = '#RECORD_ID#';