-
Notifications
You must be signed in to change notification settings - Fork 58
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
Manually modify initialValues #191
Labels
enhancement
New feature or request
Comments
@georgeemr E.g., $: {
// fetch data from API
form.update(data => ({ ...data, firstName: API_RESULT_FIRSTNAME, lastName: API_RESULT_LASTNAME, lastName1: API_RESULT_LASTNAME1 }))
} Edit: specify which Svelte writable store is exposed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a way that I can modify the value of the initialValues when using the helper components?
I want to change 3 inputs when one input changes because I want to get from the server the values.
const initialValues = {
identification: "", // --> When input, i want to change firstname, lastname, and lastname2 with values from the server
firstName: "",
lastName1: "",
lastName2: ""
};
I'm unable to call a custom function and change the values directly because the Form don;t detect the change and because of that the form says the value is required.
The text was updated successfully, but these errors were encountered: