Skip to content

HowToFormTabs

iraichi edited this page Apr 24, 2015 · 6 revisions

How to create a form with tabs

Please refer here for general informations about Form Controllers and Layouts.

using the PageBreak node you can divide fiels between pages in the same form: it is a very useful feature in case of a model with a large number of fields.

For example, in the following example from a real project, a model with 60 fields has been divided in 4 different tabs. The value of PageBrak node is the caption of the tab:

FieldSet:
  Row:
    Field: Description
      CharWidth: 30
    Field: IdNumber
      CharWidth: 20
  Row:
    Field: LastPromotionDate
      CharWidth: 15
    Field: WorkingLocation
      CharWidth: 20
  Row:
    Field: BirthDate
      CharWidth: 15
    Field: BirthPlace
      CharWidth: 35
  Row:
    Field: BirthCountry
      CharWidth: 25
FieldSet:
......
Pagebreak: Permanent Address
FieldSet:
......
Pagebreak: Contact Address
FieldSet:
......
Pagebreak: Other Info
FieldSet:
.....

StandAloneForm.png

Clone this wiki locally