Need to create a form and pass all the details to the NetSuite side and create a lead using passed details
First of all, create a form and add a click function in submit button and while submitting add a function for passing the details to the backend.
<button class="contactus-submit-button" type="submit">Submit</button>
Submitting event
, events: {
"submit #contact-us-form": "SubmitForm"
}
Submitting function
var promise = BackboneFormView.saveForm.apply(this, arguments),
This passes the data to the backend and on the service controller we can post the data
this.sendContent(ContactUsModel.CreateLead(this.data), { 'status': 201 });
Using this data we can make changes on the backend (for example we can create a Lead customer if the form has required data )