Difference between nuSetValue and this.value
Posted: Mon Aug 18, 2025 4:04 pm
Dear All,
In JavaScript, I’m using the following code in nuOnLoad() in a popup edit form to populate a text field:
When saving, it works without any problem.
However, if I replace it with:
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
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