All of the values get set appropriately in the collection, including the chosen date as a Number. However when I navigate back to the form all of the values are set inside of the inputs except the value of the milestone.$.dateDate. When using the datepicker outside of an array I have been able to set the value using a technique like so:
Where instead of returning the dueDate value as a Number, I convert it to .toLocaleDateString(). This works fine.
I tried a similar technique with #afEachArrayItem.
I have a collection named
Projects
in which I need the user to be able to edit previously recorded values.Say I have schema defined as:
And I use it in an
autoform
as such:All of the values get set appropriately in the collection, including the chosen date as a
Number
. However when I navigate back to the form all of the values are set inside of the inputs except the value of themilestone.$.dateDate
. When using thedatepicker
outside of an array I have been able to set the value using a technique like so:Where instead of returning the
dueDate
value as aNumber
, I convert it to.toLocaleDateString()
. This works fine. I tried a similar technique with#afEachArrayItem
.But was unable to successful get that to work. Any thoughts?