Using Targeted Search Filters in a Blueprint Maker Blueprint
Let users select from a pre-existing group of search filters to apply these to the output of a Page Blueprint.
Replace me with a more complete explanation of what this how-to accomplishes.
Create a Targeted Search Filter Group
Learn 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 Blueprint
Learn about creating a Page Blueprint.
Define a pick-list in your Blueprint JSON
Learn about Using a Picklist of Options in a Blueprint.
Access your Blueprint JSON Definition
Read more about Accessing and Editing the JSON File.
Add the "filterGroup" attribute to the JSON
Add 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.
"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" attributes
To 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
.
Re-Upload your JSON to the Blueprint Definition Page
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.