Configuration
Q: Where do you configure form mapping in the Send2CRM JavaScript client?
A: You don’t! This would be insecure.
The Send2CRM client is JavaScript only, which means that all functionality is exposed to website visitors.
Form mapping is controlled at the service end. For example the Salesforce package allows mapping submissions to any object with any fields mapped, in a tightly controlled manner. Form submissions will not be accepted without explicit service configuration.
Form identification
Every submission must have some type of unique identifier. The Send2CRM client attempts to add the <form> element id and any other possibly unique attributes to the submitted data. When you map the form at the service end you set a matching value to identify the form - any form that does not have an associated mapping is rejected.