These docs are for v3.2. Click to read the latest docs for v5.0.

Discussions

Ask a Question
Back to All

View.json - External HTML template files

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
}
}
}