How to get the ID of each row in a custom component?

Hi,

Does anyone know if it’s possible to get hold of the ID of a data row in a custom component using handlebarjs?

I’ve looked through the help and community - and unless am missing the obvious, I can’t see how to do it?

In the following stripped down example, all I want to do is put the right code in where it says {{ID}} so that the unique record ID for each row of data is used as the id so that I can inject further data using javascript at a later stage from another table.

{{#each records}}


{{field_40}}


{{/each}}

Thank you,
Mark

Hi @MarkEdmunds

This comes up frequently so I wrote a short guide on how to do this with both Table Rules and Form Record Rules.

Hope it helps!

How to save a Record ID

Hi Tim,

Yes - that did the trick.

Thank you
Mark

1 Like