Title Field (Form)

modal form title field

The read-only title field (type="title") displays the specified text using a bigger font.

If you don't specify type and id fields, the field type will be interpreted as "title".

Title Field Properties

  • type ("title") - specifies the form field type; optional

  • name (string) - the field name that will be displayed above the text box

  • cssClass (string) - additional CSS class that will be applied to the form field; optional


async function modalText() {

  const form = [
    {name: "Details", type: "title" },
    {name: "Name", id: "name", type: "text"},

  const data = {
    name: "John Doe"

  const modal = await DayPilot.Modal.form(form, data);