You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tl;dr: see my data sample below. If I get the "path" for "Do you find this question helpful?" I will get [x].fieldGroup[x].fieldGroup[x].templateOptions.label but as you will see, these "fieldGroups" have "key" values. So in this case I am wanting to return zero.feedback.a.templateOptions.label instead, any idea how I can add this "key" to the path?
[
{
"key": "zero",
"fieldGroup": [
{
"key": "a",
"templateOptions": {
"label": "Do you own a car?"
}
},
{
"key": "feedback",
"fieldGroup": [
{
"key": "a",
"templateOptions": {
"label": "Do you find this question helpful?"
}
}
]
},
]
},
{
"key": "feedbackConsent",
"templateOptions": {
"label": "Do you agree to provide feedback?"
}
}
]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey there! I really love this library so far!
See my problem here.
tl;dr: see my data sample below. If I get the "path" for "Do you find this question helpful?" I will get
[x].fieldGroup[x].fieldGroup[x].templateOptions.label
but as you will see, these "fieldGroups" have "key" values. So in this case I am wanting to returnzero.feedback.a.templateOptions.label
instead, any idea how I can add this "key" to the path?Beta Was this translation helpful? Give feedback.
All reactions