How to capture the value of an input field in a reorder list component?

Hey weweb-admins, hey community,

I am sure there is very simple solution for the problem I am encountering:

I used a weweb “reorder list” component to realize a solution where a user can create multiple sections and per section add a title and a description.

This is the current setup of the “Reorder list” component:

  • The component (items) is bindet to a variable - thats fine
  • The “item” section holts the “Section” div that should be repeated (thas also working)
  • In the “Section” I have two entry fields: “template_section_title” and “template_section_description”

Here a screenshot of the section:

  • The short answer input field is the “template_section_title” input field
  • The long answer input field is the “template_section_description” input field

What I am trying to achieve is:

  • When user types in a value in “template_section_title” input field this should be transfered to the item.data
  • “template_section_title” input field → item.data.section_title
  • “template_section_description” input field → item.data.section_description

I am not able to manage this :confused: what am i doing wrong? I guess there is a simple answer how to sort this - proably with an “on change” workflow on the input fields itself … As these are input fields in a repeated objekt, the do not appear in the weweb chip library - in static processes it is quit easy to bind the value of an input field to the an item.data point, but here I just dont get it.

Lookign forward for help!

Many thanks!

Hey @Peer
I think you are on a good track with the On change workflow.
item.data is a very contextual data used to display the content of an item in your list.

What you would need to do is to target the list (most likely a variable of type array?) and modifying the object that you want (identified by the id — you should have access to these contextual information when you create the workflow On change)

Does that make sense?