DanielH Posted October 12, 2016 at 08:03 PM Share Posted October 12, 2016 at 08:03 PM Trying to style formbuilder input fields to match the other forms produced by jreviews. i.e: userprofiles register form and want to remove the title and use the placeholder attribute. In the sample schema below "maxLength" and input validations I've used work but not the "placeholder". How do you use placeholder? { "title": "Contacts", "type": "array", "format": "grid", "items": { "title": "Contact", "type": "object", "properties": { "deptTitle": { "title": "Dept", "type": "string", "name": "Department", "maxLength": 50, "placeholder": "department" }, "nameValue": { "title": "Name", "type": "string", "maxLength": 36, "placeholder": "name" }, "phValue": { "title": "Phone", "type": "string", "pattern": "^(\\([0-9]{3}\\))?[0-9]{3}-[0-9]{4}$", "maxLength": 14, "placeholder": "phone" }, "extValue": { "title": "Ext", "type": "string", "maxLength": 5, "placeholder": "extension" }, "mailValue": { "title": "Email", "type": "string", "maxLength": 45, "placeholder": "email" } } } } Reading up and every example I have found this is the format for these attributes. Thank you Daniel Link to comment
Alejandro Posted October 12, 2016 at 08:43 PM Share Posted October 12, 2016 at 08:43 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. .... 1 Link to comment
DanielH Posted October 13, 2016 at 09:23 AM Author Share Posted October 13, 2016 at 09:23 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted October 13, 2016 at 10:12 AM Share Posted October 13, 2016 at 10:12 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
DanielH Posted October 13, 2016 at 11:44 AM Author Share Posted October 13, 2016 at 11:44 AM (edited) This section is only visible with a valid subscription. If you have a valid subscription, please login. Edited October 13, 2016 at 11:45 AM by DanielH Link to comment
Recommended Posts