No new ID made when 'clone' record
Posted: Thu Mar 27, 2025 10:58 am
Hi all,
Currently I am running into the following problem. I am having a browse and edit form which is built around my 'appointments' table. When I open the edit form of one of these appointments, I clone it, adjust it and try to save it, it gives an JavaScript error:
"Uncaught TypeError: Cannot read properties of null (reading 'style')"
This has to do with the fact that I have the appointment_id visible on my edit-form. When I remove it, it works just fine and nubuilder creates a new unique ID for the cloned appointment. Hower, I would like this appointment_id to still be visible om the edit-form. I tried changing the access-settings and changing it into an input object and a display object, but nothing seems to work besides completely deleting it form the form.
Any solutions you could help me with? Thanks a lot in advance!
Currently I am running into the following problem. I am having a browse and edit form which is built around my 'appointments' table. When I open the edit form of one of these appointments, I clone it, adjust it and try to save it, it gives an JavaScript error:
"Uncaught TypeError: Cannot read properties of null (reading 'style')"
This has to do with the fact that I have the appointment_id visible on my edit-form. When I remove it, it works just fine and nubuilder creates a new unique ID for the cloned appointment. Hower, I would like this appointment_id to still be visible om the edit-form. I tried changing the access-settings and changing it into an input object and a display object, but nothing seems to work besides completely deleting it form the form.
Any solutions you could help me with? Thanks a lot in advance!