Map - smbc-digital/form-builder GitHub Wiki
Refer to Stockport Design System for styling information and reference images
Related
When a map contains some data which formbuilder needs to consume the Inbound Values property can be used to pass data on POST. This works by the map popup content being a form and any values specified in the inbound values are hidden fields within that form. This will cause when submitting the form that the hidden fields are now accessible within the POST action. These values will be mapped according to the mapping specified in the Inbound values array.
DSL properties
Property | Type | Required | Default Value | Description |
---|---|---|---|---|
QuestionId | string | ✔️ | ❌ | Unique question id allowed charatcers are [a-zA-Z] only |
Optional | bool | ❌ | false | Sets if the map is optional |
Source | string | ✔️ | ❌ | Source url to map js files |
NoMapContent | string | ✔️ | ❌ | Content to be shown if user does not have js enabled within their browser |
SummaryLabel | string | ❌ | ❌ | Change the label associated with this input on the summary |
Map examples
DS Json for maps:
{
"Type": "Map",
"Properties": {
"QuestionId": "map",
"NoMapContent": "JS disabled, please call.....",
"Source": "https://url.com/webmapping/int/generic-map"
}
}