To get this bit of code
dmx-bind:id="'inp_amount'+$index"
The ID property needs to be added to
This property is required to ensure unique ID’s per document.
To get this bit of code
dmx-bind:id="'inp_amount'+$index"
The ID property needs to be added to
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.
This video shows the problem as of now.
Dynamic ID
Please vote!
Dynamic ID attribute was added in Wappler 6.3.1