Page 1 of 1

nuSubformRowObject checkbox on subform

Posted: Sat Dec 23, 2023 6:32 pm
by andrea763
Hi i'm trying to set the value of a checkbox in a subform without success.
If i change the field type to text it works properly..
I use the following code..
Advice please.

nuSubformRowObject(event.target.id, 'checkboxname').val('0');

Re: nuSubformRowObject checkbox on subform

Posted: Wed Dec 27, 2023 11:27 am
by kev1n
Hi,

Untested:

Code: Select all

const chkId = nuSubformRowObject(event.target.id, 'checkboxname').attr('id');
nuSetValue(chkId, true);

Re: nuSubformRowObject checkbox on subform

Posted: Wed Dec 27, 2023 8:34 pm
by andrea763
thank's kev1n, it works but, it returns only the saved value and not the actual status of the checkbox.

Re: nuSubformRowObject checkbox on subform

Posted: Wed Dec 27, 2023 11:44 pm
by kev1n
Use nuGetValue(chkId) instead

Re: nuSubformRowObject checkbox on subform

Posted: Thu Dec 28, 2023 1:47 am
by andrea763
you're the number one.
Thank's