Add ID to Input properties

To get this bit of code

dmx-bind:id="'inp_amount'+$index"

The ID property needs to be added to

image

This property is required to ensure unique ID’s per document.

Can you explain please where to use it ?

As you know, an ID must be unique in a document. When an input is placed in a repeat area, an ID is assigned to the input. This means that the same ID would be repeated multiple times. To overcome this, we can assign a dynamic ID by using dmx-bind:id="'inputID'+$index" where $index is the index of the repeat array.

1 Like

This video shows the problem as of now.

Please vote!

1 Like

Dynamic ID attribute was added in Wappler 6.3.1 :slight_smile:

2 Likes