form

form, tile type

The form tile is intended to display a form where values can be manually entered from the dashboard view. The variables listed for display in this tile are expected to be attached scalar values obtained from a read form.

read form with
  StartDate : date
  IsTicked : boolean
  Category : text
  MyHidden : text

show form "My settings" a1b2 with
  StartDate as "My start date"
  IsTicked as "Is ticked"
  Category as "My category"
  MyHidden { formAccess: hidden }

show summary "My settings view" a3b4 with
  StartDate
  IsTicked
  Category
  MyHidden

Specifying a default form values is possible.

read form with
  StartDate : date
  IsTicked : boolean
  Category : text
  MyHidden : text

show form "My settings" a1b2 with
  date(2022, 2, 17) as "My start date" form: "StartDate" 
  false as "Is ticked" form: "IsTicked"
  "my default category" as "My category" form: "Category"
  "my hidden default" form: "MyHidden" { formAccess: hidden }

show summary "My settings view" a3b4 with
  StartDate
  IsTicked
  Category
  MyHidden

Roadmap: There are two syntaxes that co-exist for the tile form. The former does not allow the default values to be set. The later uses text literals to identifies variables. Neither of the two syntaxes for the form tile is really satisfying. This syntax will be refactored in the future.

User Contributed Notes
0 notes + add a note