Page 1 of 1

No new ID made when 'clone' record

Posted: Thu Mar 27, 2025 10:58 am
by 88tc88
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!

Re: No new ID made when 'clone' record

Posted: Thu Mar 27, 2025 11:07 am
by kev1n
Hi,

You could add a Display Object with a different ID than appointment_id (e.g., app_id) and use it to display the appointment_id.

For example, you can use the following SQL query:

Code: Select all

SELECT appointment_id FROM your_table where appointment_id = '#RECORD_ID#