Repeating Input Problems

I’m sure I’m missing something super simple here but I just can’t seem to get this working in Wappler, basically I have a form inside a repeat region that uses the exact same inputs inside as its repeated but because there is multiple forms what happens is no matter which form I update it only updates the first form. Im assuming its something to do with I need dynamic ids or names but when I tried this I then couldn’t get the server action to link to the form?

This week i tried and get sucess. I follow this document – https://docs.wappler.io/t/displaying-dynamic-data-on-your-pages/2871

I think you miss make repeat children.

Repeat children will repeat the children in a parent>child structure as many times as records are returned by the query.

See the doc and see if help. My pc broke today and i cant take screenshot to you, Sorry.

It’s not displaying it that’s the issue I have both forms on the page but when I edit form 2 it edits form 1. Thanks for the reply I may have missed something in your answer but im not sure this is what im looking for.

The following basic structure will work for a repeating form.

Make sure the button is inside the form, and set to a Submit type.

If this doesn’t clear it up for you, I’d suggest giving us more information by posting screenshots, etc. so we can have an idea of what you are doing.

So what im attempting is to make the forms edit the correct data for the page there’s 2 forms and 2 display areas, the forms are the supposed to one each but both forms just edit the top on the display page. I think the issue is when im updating my database it always edits the first entry as the names and ids in the forms are the same when repreated, but when I try make them dynamic I can’t link the server action

Screenshots from within Wappler that show your app structure and properties. :slight_smile:

Do you need a look at any other areas?

Is there a way to get the linked field on the second image to be dynamic? im thinking this maybe where im making a syntax mistake or something?

You mean dynamic src for image? If yes, then you can do it like src="" dmx-bind:src="yourbinding".

Can you share HTML of the repeat and its structure?

Also, as a good practice, you should always made the ID of inputs/forms etc dynamic.
EG: id="myInput" dmx-bind:id="myInput{{$index}}"… this way browser will not show warnings in console and you can still use myInput to refer any element within a repeat row.

thanks for the advice the issue was actually when I was pulling my unique id from the db the query pulled a few results rather than only one, so to solve this in the section I was updating I added a hidden field with the unique id rather than try filter the array.