Discussions
View.json - External HTML template files
over 7 years ago by Rob
Hello! I might be missing something for some reason OpenForm doesn't render my 'default-layout.html' file from view.json file. Does OpenForm support this option? Thank-you!
In my view.json file I have
{
"layout": {
"template": 'default-layout.html'
}
}
which has the following markup
and my schema.json file has
{
"title": "Contact Us",
"type": "object",
"properties": {
"Name": {
"title": "Full Name",
"type": "string"
},
"Email": {
"title": "Email Address",
"type": "string",
"required": true
},
"Phone": {
"title": "Phone Number",
"type": "string",
"required": true
},
"Message": {
"title": "Your Message",
"type": "string",
"required": true
}
}
}