Using Radiobuttons

.addFormField({
    id: 'type',
    title: 'Type',
    radiobuttons: [
        {
            text: 'Application',
            value: 'app'
        },
        {
            text: 'Script',
            value: 'script'
        }
    ],
    type: Enum.FieldType.Radiobutton
})

Last updated