HTML

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

Example

// you can use either body or model or both keys for HTML source code

{
  "html": "<h1>This is some HTML!</h1> It will display ahead of the model HTML",
  "model": "mySourceHtml",
  "type": "html",
  "styleClasses": "col-md-12"
},

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.

HTML Editor

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.

Last updated