Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How get value from For Each input text looping

edited Jan 9, 2019 1:45PM in Visual Builder 1 comment

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.3

Code 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> 
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!