Create a Targeted Search Filter GroupLearn about creating Filter Groups. If you have already created a filter group, take note of its exact name. This will be used in the Blueprint JSON later to identify the Filter Group. Create your Page BlueprintLearn about creating a Page Blueprint. Define a pick-list in your Blueprint JSONLearn about Using a Picklist of Options in a Blueprint. Access your Blueprint JSON DefinitionRead more about Accessing and Editing the JSON File. Add the "filterGroup" attribute to the JSONAdd a new line to your Blueprint Field object definition as follows. Ensure that the "type" attribute has the value "list". Also be sure that the "filterGroup" value is the same name as the Filter Group from Step 1, and in quotations. Code Block |
---|
| "blueprintFields" : [
{
"id" : "office-location",
"name" : "Office Location",
"required" : true,
"type" : "list",
"filterGroup" : "Offices",
"multiselect" : true,
"addLabels" : true,
"helpText" : "Select your office location from the list."
},
...
] |
Optionally: add "multiselect" and "addLabels" attributesTo allow users to select more than one value, set the "multiselect" attribute in the JSON to true . And to apply the selections as labels on the page, set the "addLabels" attribute to true . That's it!You may now create a page from this blueprint. Check to see that the pick-list options are correct, and that the label was applied to the resulting page.
|