felte icon indicating copy to clipboard operation
felte copied to clipboard

How do I refer to values within `initialValues` to add a new dependent value?

Open koundinyad opened this issue 3 years ago • 0 comments

Working with svelte-kit, and was wondering how do I refer to values within the object?

const { form } = createForm({
		initialValues: {
			a: 1,
			b: 2,
			c: a * b    //  this 
		},
	})

koundinyad avatar Jul 12 '22 16:07 koundinyad