Managed-App-Schema-Builder
Managed-App-Schema-Builder copied to clipboard
Add placeholder option to all keys with string or integer values
Jamf manifests support the placeholder keyword to display optional placeholder text in a field. This is useful for displaying example text without setting the actual value.
Here’s a basic property:
{
"title": "Disk Manager (com.company.diskmanager)",
"description": "Preference settings for the fictitious Disk Manager application. This manifest demonstrates different ways to format the appearance or value of properties as well as include useful options like infoText. Jamf Pro supports many but not all elements and options here: https://github.com/json-editor/json-editor.",
"properties": {
"downloadDirectory": {
"title": "Download Directory",
"description": "Choose the default location for downloading working files.",
"property_order": 25,
"type": "string"
}
}
}
Here’s the same property with the placeholder option.
{
"title": "Disk Manager (com.company.diskmanager)",
"description": "Preference settings for the fictitious Disk Manager application. This manifest demonstrates different ways to format the appearance or value of properties as well as include useful options like infoText. Jamf Pro supports many but not all elements and options here: https://github.com/json-editor/json-editor.",
"properties": {
"downloadDirectory": {
"title": "Download Directory",
"description": "Choose the default location for downloading working files.",
"property_order": 25,
"type": "string",
"options": {
"inputAttributes": {
"placeholder": "~/Downloads"
}
}
}
}
}
This change applies to all property string and integer property types.