HTML in schemas
See original GitHub issueIt would be nice to be able to use html in the JSON schema
I don’t think this is possible at the minute so correct me if it is, but it would be really nice to be able to add html into the JSON when generating forms so that custom styling can be applied. Example below.
{
"component": "h3",
"children": "Student <strong>registration</strong>"
},
{
"label": "Your name",
"name": "name",
"validation": "required"
},
{
"label": "Your email",
"name": "email",
"help": "Please use your student email address",
"validation": "bail|required|email|ends_with:.edu",
"validation-messages": {
"ends_with": "Please use a .edu email address"
}
},
{
"label": "Student ID",
"name": "student_id",
"help": "Your 6 digit student ID (ex. ST-123421)",
"placeholder": "ST-",
"validation": "^required|matches:/^ST-[\\d]{6}$/",
"validation-name": "Student ID"
},
{
"type": "submit"
}
]
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Getting started with schema.org using Microdata
Schema.org is a set of extensible schemas that enables webmasters to embed structured data on their web pages for use by search engines...
Read more >What Is Schema Structured Data And How To Implement It - Moz
Schema.org (often called schema) is a semantic vocabulary of tags (or microdata) that you can add to your HTML to improve the way...
Read more >How to Boost Your SEO by Using Schema Markup - Neil Patel
Schema Markup Uses a Unique Semantic Vocabulary in Microdata Format. You don't need to learn any new coding skills. Web pages with markup...
Read more >WebSchemas - W3C Wiki
Web Schemas was a W3C group used by the schema.org project to collaborate with the wider community. The group is not just for...
Read more >Microdata - HTML: HyperText Markup Language | MDN
Google and other major search engines support the Schema.org vocabulary for structured data. This vocabulary defines a standard set of type ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Schema:
Component formulate-html.vue:
Registration in VueFormulate Config:
Looks like you guys have found a good way around this so im going to close it out for now. Again, would love to see a plugin develop here 😃