How can i access the data of an API action triggered by a form submit?
newProjectForm is linked to newProject server action. The api will do various tasks and at the end get the ID of the project that was just created and return it with a DB query. Everything works fine but i can’t seem to be able to access the id like it would be possible with a serverconnect.
Make sure you have something to output in your newProject server action.
Then apply some dynamic text or anything you want from this form - response value.