How get value from For Each input text looping
Content
I have a page variable that is an array of objects(reqArray). Each object has a "description" property, and some others. I want to loop thru this array and build a set of input texts. So far is ok. The problem arise when I try to get the description values - that the user edited - from each text input. The value does not update. Any help would be appreciated.
This is my array:
[
{
"description": "",
"label": "Req1",
"priority": 1
},
{
"description": "",
"label": "Req2",
"priority": 2
},
{
"description": "",
"label": "Req3",
"priority": 3
},
{
"description": "",
"label": "Req4",
"priority": 4
},
{
"description": "",
"label": "Req5",
"priority": 5
}
]
Version
18.3.3Code Snippet
<oj-bind-for-each data="{{$page.variables.reqArray}}"> <template> <oj-input-text class="collaspInput1" :id="[['oj-input-text-1697507376-' + $current.index]]"></oj-input-text> </template> </oj-bind-for-each>