I am adding in repeat form input and I assume based on the examples given this is correct.
<div class="form-row" is="dmx-repeat" id="repeat_segments" dmx-bind:repeat="Segments.data"> <input id="segment_data" name="" class="form-control" dmx-bind:name="repeat_segments[{{$index}}][segment]" dmx-bind:value="segment">
However it appears wappler does not like this: repeat_segments[{{$index}}][segment]
Is there something wrong with my syntax or is it Wappler not liking it?
sid
April 14, 2021, 12:59pm
3
Because this is a dynamic binding, I don't think the braces around $index are required.
Have you tried removing those?
Although, I have seen similar issues with Set Value in the API step / server action. But not sure if that is related to this client side thing.
HI @sid
Yeah, tried that and it does strange things to the server connect $_Post array
As apposed to the braces included:
I have a feeling it’s a Wappler UI issue and see it’s now been assigned to @George
1 Like
ben
April 15, 2021, 1:22am
5
Not sure of the problem. When I enter the code into a document, I do not have an error.
What could be a problem is the ID
. This must be unique for each document. You can overcome this by attaching the index to the value of the ID
. If you have no use for the ID
, e.g. no label, it is safe to delete the ID
property.