Closed coxrichuk closed 7 years ago
Essentially both fields were getting only "value" as their id/name because of "{{form.key.slice(-1)[0]}}", so only one got updated. Names and Id's are now generated differently in the alpha of v1 using a function to get the full key path, you could try just joining your keys with .join("-") in your template.
Please re-open if you do not feel the question has been answered sufficiently.
I have created a Custom Textbox and I want to return a nested json to the model.
When I set the
key
in theform
tomyfield.value
It breaks the validation and never returns the model
However if I use the standard Schema form text box it works as expected return the model with a nested key
Schema / Form
Custom field
Model I am expecting when all fields completed
Model I am getting when all fields are completed
myfield
is being returned as invalid