i have a block container which is fetching my product details of a certain product.
Inside of this block i have added tabs commponent to show several details, one of them is reviews.
As well customers can write a review witrh filling a form (inside a form container)
So far so good, but in the form container workflow its not showing me the elements (e.g. the input fields or the range component) of the form, only when i remove the the fetch collection of the “Block”. Basically i can not use the post request inside a fetch collection.
Are you using the new reusable components? Or is this just a form generated by a bound collection? In both cases you’ll need to handle the data yourself, by assigning it to an object, before sending or using it within any other workflows.
But maybe I’m missing the context here.
It’s an odd limitation, input variables will not show up when repeated. The only way to access the values is to store them through on change workflow on every input.
You can create a variable Review Form, and store the input data inside, then when you submit you can use this variable on your request.
I was doing that as well, but i thought there might be a better solution.
That one works now, thanks.
But how do i reset the input fields and the range components, with reseting the variables its only resetting the values from the variable but not the components itself. :-/
You need to bind the initial values of the inputs to the corresponding variable, this way updating the variable will also update the value of the input.