#how to use data from modalformdata
1 messages · Page 1 of 1 (latest)
.formValues;
How to use it
you can save it to a variable with acts like a list of values
form.show(player).then(({formValues}) => {
console.warn(formValues[0])
// printing the first value
})
that too
I prefer use this
form.show(player).then(({formValues}) => {
const { select1, select2, select3 } = formValues
})
I'dont think I fully correct maybe need fixed
its an array not an object
const [v1, v2, v3] = formValues