How to properly Create dynamic multstep form and submit those values in structure in Supabse

I am working and asking for this project for many days. But still was not able to do some things. Mainly because I do not programming and I do not know how to properly create component. This is project: 5Zg9n9VVQm3GpGMqm4vDHh.

The main issue is in the patient form. I am using my own custom form component. I was able to use supabase to fetch question and more information. And used that to create form fields. And was successful. but the main issue is that I need to able to store the values in the state variable, because some question visibility will depend on that. But I do not know how to do that. And also, after doing next phase will be visible and it will be also same. and in the end when pressing done, I want to send all those data of state variable to go straight to database. I am really lost because I do not know programming nor how to properly make it work!

Hello @its_the-sa, have you checked out our tutorial on How to create Multi-step forms in Plasmic? That should help answer your questions.

For submitting the form data in the last step, you can configure the form’s onSubmit interaction to run the “Use Integration” action. You can find tutorials on how to do that on our Youtube channel, like Twitter clone tutorial that uses Postgres database (Supabase is based on Postgres)

I think the more perfect one is the dynamic multistep form. That matches perfect