Create a contact with a custom form created in code

If you mean that you want to create contacts based on the details entered in the form, check out wix-crm-backend - Velo API Reference - Wix.com