Configuration
Q: Where do you configure form mapping in the S4S Cloud JavaScript client?
A: You don’t! This would be insecure.
The S4S Cloud client is JavaScript only, which means that all functionality is exposed to website visitors.
S4S Cloud 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. S4S Cloud 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.