Page 1 of 1

html field in subform

Posted: Thu Jun 02, 2022 11:46 am
by damien
Hello,

I would like to display an HTML field into a sub form.
But I do not understand how to put database table filed values into the HTML.
I tryed with the #column_name# but it seems not to works in the subform.
Even if if the #RECORD_ID# is replaced.

I have tried into a browse&edit form and it works fine.
But not into the subform.

Do I miss some thinks ?

Re: html field in subform

Posted: Fri Jun 03, 2022 7:48 am
by kev1n
Hi,

Hash Cookies are not resolved in a subform (except for #RECORD_ID#). You'll need to use JavaScript to replace them.

Re: html field in subform

Posted: Sun Jun 05, 2022 6:23 pm
by damien
Ok.
Searching into the forum I found that useful JS code to retrieve the value of a sub-form object:
var id = event.target.id;
var entryId = nuSubformRowObject(id, 'subform_object').val();