Skip to content

copyValueTo doesn't like arrayIndex #563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ghost opened this issue Sep 29, 2015 · 5 comments
Open

copyValueTo doesn't like arrayIndex #563

ghost opened this issue Sep 29, 2015 · 5 comments

Comments

@ghost
Copy link

ghost commented Sep 29, 2015

I cannot copy a value from one question in a tab array tab to another question in the same tab. E.g. The following merits no results because arrayIndex is not evaluated as a variable. All other efforts to extract the value have been unsuccessful.

 {
    "key": "comments[].Checkbox1",
    "copyValueTo": ["comments[arrayIndex].Checkbox2"]
 },
"comments[].Checkbox2"

Any ideas? I feel I may be missing something obvious.

@michaelarichard
Copy link

Also running into this issue. How do I copyValueTo within a Tabarray?

@Anthropic Anthropic self-assigned this Apr 9, 2016
@Anthropic Anthropic added this to the Backlog milestone Apr 9, 2016
@Anthropic
Copy link
Member

This should be working now in the alphas.

@michaelarichard
Copy link

michaelarichard commented Apr 26, 2017

Testing on pre-release. No luck so far. Am I missing something?

        {
          "key": "comments[].checkbox1",
          "copyValueTo": ["comments[arrayIndex].checkbox2"]
        },
        "comments[].checkbox2"
      ]

Replacing the arrayIndex with 0 or 1 accesses the proper field on each respective 0/1 tab, but I am still unable to make it dynamic by using arrayIndex

  "_from": "angular-schema-form@pre-release",
  "_id": "[email protected]",
  "_inCache": true,
  "_location": "/angular-schema-form",
  "_nodeVersion": "7.7.4",```

@Anthropic
Copy link
Member

Anthropic commented Apr 26, 2017

@michaelarichard thanks for letting me know, I'll take a look.

copyValueTo paths are not interpolated or pre-processed it appears, I should be able to sort it soon :)

@Anthropic Anthropic reopened this Apr 26, 2017
@Anthropic Anthropic modified the milestones: 1.0.0, Backlog Apr 26, 2017
@jolevesq
Copy link

Is this suppose to be resolved in 1.0.0-alpha.4? I have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants