Is it possible to create a Custom Entry Definition that will upon submission (i.e. Submit Button) create a new workspace using values entered in the entry form?

So basically I want to create a Form with a Custom Entry Definition in which a user populates a bunch of fields (i.e. Workspace Name).
Then when the Submit button is pressed, a new workspace is created with the Workspace Name being pulled from the Form the user completed etc

If so, can someone please guide me with an example?

Thank you