Full JSON the UI-Configuration for drop-down fields
{
"_": {
"V": 1
},
"ContentType": {
"Id": "@string-dropdown",
"Name": "@string-dropdown",
"Scope": "System",
"Description": "Dropdown string-input configuration",
"Attributes": [
{
"Name": "DropdownValues",
"Type": "String",
"IsTitle": true,
"Metadata": [
{
"Id": 41667,
"Version": 4,
"Guid": "5bd40264-ef9e-4eab-b093-b3b620e8ac63",
"Type": {
"Name": "@All",
"Id": "@All"
},
"Attributes": {
"String": {
"CustomJavaScript": {
"*": ""
},
"DefaultValue": {
"*": "Simple Value\nAnother Value\nLeft (will store an l):l\nRight (will store an r):r\nCenter (... c):c\nMiddle:m"
},
"InputType": {
"*": "string-default"
},
"Name": {
"*": "Values"
},
"Notes": {
"*": "<p>Type in the values, one per line and separate keys:values with a \":\". </p>\n<p><strong>Example 1</strong><br />\n(none):\n<br />\nLeft:l\n<br />\nRight:r\n<br />\nTop:t</p>\n<p><strong>Example 2</strong><br />\nMIT License:MIT<br />\nGUN Licnese:GNU<br />\nGPL-3 with mentioning of Author:GPL-3-BY</p>"
},
"ValidationRegExJavaScript": {
"*": ""
}
},
"Boolean": {
"Disabled": {
"*": false
},
"Required": {
"*": false
},
"VisibleInEditUI": {
"*": true
}
}
},
"Owner": "dnn:userid=1"
},
{
"Id": 41668,
"Version": 4,
"Guid": "ef9d3d36-afdd-4994-be14-701d42f175c3",
"Type": {
"Name": "@String",
"Id": "@String"
},
"Attributes": {},
"Owner": "dnn:userid=1"
},
{
"Id": 41669,
"Version": 4,
"Guid": "ad7b7c85-4eee-400e-beda-a30befb455e4",
"Type": {
"Name": "@string-default",
"Id": "@string-default"
},
"Attributes": {
"Number": {
"RowCount": {
"*": 12.0
}
}
},
"Owner": "dnn:userid=1"
}
]
},
{
"Name": "EnableTextEntry",
"Type": "Boolean",
"IsTitle": false,
"Metadata": [
{
"Id": 41679,
"Version": 4,
"Guid": "148087de-0e4a-4003-9909-ea4c548cfa74",
"Type": {
"Name": "@All",
"Id": "@All"
},
"Attributes": {
"String": {
"CustomJavaScript": {
"*": ""
},
"DefaultValue": {
"*": "false"
},
"InputType": {
"*": "boolean-default"
},
"Name": {
"*": "Enable Free Text"
},
"Notes": {
"*": "<p>Allow users to type other things than are in the drop-down. Two common situations for this: <ul><li>situations where the drop-down will suggest typical values, but others are also possible</li> <li>Situations where you need tokens like [Parameter:Category] which will later be resolved to a real value</li></ul></p>"
},
"ValidationRegExJavaScript": {
"*": ""
}
},
"Boolean": {
"Disabled": {
"*": false
},
"Required": {
"*": false
},
"VisibleInEditUI": {
"*": true
}
}
},
"Owner": "dnn:userid=1"
},
{
"Id": 41682,
"Version": 3,
"Guid": "8399706a-0a6c-4f58-b816-04a2272295f3",
"Type": {
"Name": "@Boolean",
"Id": "@Boolean"
},
"Attributes": {},
"Owner": "dnn:userid=1"
}
]
}
],
"Metadata": [
{
"Id": 41685,
"Version": 3,
"Guid": "8b606bc8-ea55-4c5c-a7cb-d886a6a751b1",
"Type": {
"Name": "ContentType",
"Id": "ContentType"
},
"Attributes": {
"String": {
"Description": {
"*": "standard drop-down with text entries"
},
"EditInstructions": {
"*": "<p>To discover more about the drop-down type, consult the <a href=\"https://github.com/2sic/2sxc/wiki/ui-field-string-dropdown\" target=\"_blank\" rel=\"noopener\">wiki</a>.</p>"
},
"Label": {
"*": "drop-down"
},
"Notes": {
"*": ""
}
},
"Hyperlink": {
"Icon": {
"*": ""
},
"Link": {
"*": "https://github.com/2sic/2sxc/wiki/ui-field-string-dropdown"
}
}
},
"Owner": "dnn:userid=1",
"For": {
"Target": "ContentType",
"String": "@string-dropdown"
}
}
]
}
}