You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I submit with PageActions using use:form the data is structured with HTML name data.0.value etc.
How to convert it as per the yup schema so I can direct;y submit data to my JSONB field in database.
I am using felte + yup
Edit:
While I await a solution for the above, I moved to using onSubmit handler and submitting the form with javascript. I am submitting $data but all my dynamic forms have an extra value key with a random string on how to get the clean form data without the keys.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My form looks like this:
If I submit with PageActions using
use:form
the data is structured with HTML namedata.0.value
etc.How to convert it as per the yup schema so I can direct;y submit data to my JSONB field in database.
I am using
felte + yup
Edit:
While I await a solution for the above, I moved to using
onSubmit
handler and submitting the form with javascript. I am submitting$data
but all my dynamic forms have an extra valuekey
with a random string on how to get the clean form data without the keys.Beta Was this translation helpful? Give feedback.
All reactions