Replies: 1 comment
-
|
Hi @c329825, The values from |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all!
I have a rather particular use case. I'm using a repeater component to gather some data that needs to have a default number of rows created based on some other field value. All good up until this point, we have added a calculated value on the repeater and it works fine.
But I need to be able later on to populate the form via initialData and because of this calculated value the form is not getting prefilled correctly.
I have tried something like this:
`const {databases} = form.data;
if(databases) {
return databases;
}
else {
const n = parseInt(form.data.numberOfDatabases || 0);
return Array.from({ length: n }, () => ({}));
but the initialData is not reflected in the form.
Is there a way to access the initialData values? Or how can we manage this case?
Beta Was this translation helpful? Give feedback.
All reactions