Skip to content

Add placeholder option to all keys with string or integer values #12

@talkingmoose

Description

@talkingmoose

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.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions