diff --git a/playground/dan/tahseen/question-schema.json b/playground/dan/tahseen/question-schema.json index 9e26dfee..14528a4e 100644 --- a/playground/dan/tahseen/question-schema.json +++ b/playground/dan/tahseen/question-schema.json @@ -1 +1,15 @@ -{} \ No newline at end of file +{ + "title": "Text Field", + "description": "A simple text field that is required, has a default value, sets a placeholder, includes a description. (field name will be 'firstname')", + "type": "object", + "required": [ + "firstName" + ], + "properties": { + "firstName": { + "type": "string", + "title": "First name", + "default": "Chuck" + } + } +} \ No newline at end of file diff --git a/playground/dan/tahseen/question-uischema.json b/playground/dan/tahseen/question-uischema.json index 9e26dfee..411a28d3 100644 --- a/playground/dan/tahseen/question-uischema.json +++ b/playground/dan/tahseen/question-uischema.json @@ -1 +1,10 @@ -{} \ No newline at end of file +{ + "firstName": { + "ui:autofocus": true, + "ui:emptyValue": "", + "ui:placeholder": "ui:emptyValue causes this field to always be valid despite being required", + "ui:autocomplete": "family-name", + "ui:enableMarkdownInDescription": true, + "ui:description": "Make text **bold** or *italic*. Take a look at other options [here](https://probablyup.com/markdown-to-jsx/)." + } +} \ No newline at end of file