Page 1 of 1

Difference between nuSetValue and this.value

Posted: Mon Aug 18, 2025 4:04 pm
by yvesf
Dear All,

In JavaScript, I’m using the following code in nuOnLoad() in a popup edit form to populate a text field:
nuSetValue('my_field_id', parent.nuRecordId());
When saving, it works without any problem.

However, if I replace it with:
this.value = parent.nuRecordId();

then the field shows the correct value when the form opens, but it won’t save.

Could someone explain why this.value doesn’t behave the same way as nuSetValue?

Thanks for your help,
Yves

Re: Difference between nuSetValue and this.value

Posted: Mon Aug 18, 2025 4:13 pm
by kev1n
Hi Yves,

I explained it here: viewtopic.php?p=30650#p30650

You can also write it as nuSetValue(this.id, parent.nuRecordId());