HTML
Last updated
Last updated
The HTML element allows you to merge any HTML and inline CSS into your form layout. HTML source data can be in either (or both) the data model
or the field scmema
Key | Value(s) | Type | Description |
---|---|---|---|
Use of the model key for this element is helpful if you have HTML content that you want to generate in FileMaker and push to the browser. Otherwise, it can be left out entirely and you can build your own HTML elements using the HTML editor and VueJS Template syntax.
To work more directly with HTML code, you can open the dedicated HTML editor from within the schema editor. To launch, click on the line number that contains an "html" key (line 95 in the example below).
Within the HTML editor, you can build your HTML code and even see a live preview of how it will render alongside the editor. If you are using VueJS Template syntax, you'll see your development data model displayed in the preview and can edit it in the Data Model tab.
Remember: The HTML editor works wherever there is a "html" key in the schema! This expands beyond the HTML element to modals and slots of a data table.
type
html
string
html
string
raw HTML. if both a model and html
code are supplied, the html
code goes first.
model
string
raw HTML (VueJS) code
dataModelScope
{optional}
string
if defined, the scope of the model
object within the html will root to this data model path. This is used when you are building things that edit other things and want live data rendering. This is used in the HTML builder page of the admin site.