Embeddable Penguin Questions and Answers
Embeddable Penguin supports pre-populating the form answers both within the HTML itself and via JavaScript.
Answers via Attribute
You can include the answers as in-line JSON by using the answers
attribute.
For example:
<embeddable-penguin
client_id="myclientid"
environment="beta"
answers='{"mqs_phone":"5551234567","mqs_business_name":"Johnson  Sons"}'>
</embeddable-penguin>
Answers via Script
You can also inject answers programmatically by assigning them to the answers
attribute on the embeddable-penguin
node:
document.querySelector('embeddable-penguin').answers = {
mqs_phone: "5551234567",
mqs_business_name:"Johnson & Sons"
}
Questions
Embeddable Penguin uses a subset of the Master Question Set that includes the following:
- mqs_first_name
- String (maximum length: 255)
- Required: Yes
- mqs_last_name
- String (maximum length: 255)
- Required: Yes
- mqs_business_name
- String (maximum length: 255)
- Required: No
- mqs_zipcode
- String (length: 5)
- Valid 5 digit US zip code
- Required: No
- String (length: 5)
- CoverageTypes
- An array of one or more of the following enumerated types:
BOP
Commercial Auto
Commercial Flood
Cyber Liability
Liability
Other/Not Sure
Professional Liability (E&O)
Umbrella
Workers Compensation
- Required: No
- An array of one or more of the following enumerated types:
- mqs_phone
- String (length: 10) Required
- Must be a valid phone number
- Must be unique within the last 60 days in the Exchange
- Required: Yes
- mqs_tcpa_consent
- Integer boolean (0/1)
- Must be "1" to submit the form.
- Required: Yes