Click on Images to Expand Them
A field group is an area on the page that contains several fields, which are in some way related to each other. Field groups can be copied and pasted in their entirety. Also, they can be made Repeatable – so, that the user can choose how many times the same set of fields needs to be filled out. This is often the case with having several joint owners of an account – the same information must be filled in by each joint owner, or in case of several contact phones, or several previous residence addresses, etc.
Field Groups can also be nested within each other with or without the Repeatable option.
Meta Field Names for field group fields are concatenated from the prefix specified in the group’s Meta field pattern and the short Meta Field Name specified for each field. In the case of a repeatable group, add an index counter to the pattern. To access values of fields from within the Field Group use model.parent.value["Local Meta Field Name"]
.
Pattern | Meta Fields | Result |
---|---|---|
|
|
| |
|
|
|
| ||
|
|
|
| ||
|
|
|
|
model.parent.value["Local Meta Field Name"]
.Example Field Group
The example below , shows how to create one field group for a Mailing Address and then copy it for a Legal Address.
Step 1: Adding a Field Group to the Page
Rw ui steps macro | ||
---|---|---|
Open Add Field panel.
Add a |
Field Group to the page.
Enter the following valuesfor the field settings: |
|
Field
|
Step 2: Applying Changes
Click the Apply button at the bottom of the screen to close the Widget Design Screen and apply changes. |
Click the Save button at the top of the Widget Details Screen to save these changes. |
Return to the Docupace Start window and you will see the new Field Group in the page tree. |
Step
32:
OpeningAdd Fields to the
FieldGroup
Rw ui steps macro | ||
---|---|---|
|
|
|
Step 4: Adding Several Fields to the Group
For example:
|
Address Line 2
City
Country – US or Other
Zip/Postal Code
State (visible if Country = US)
Home Country (visible if Country = Other)
Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Add a single text field for Address Line 2 and enter the following values:
Add a Single Text field for City and enter the following values:
Add a Single Selection field for Country (US or Other) and enter the following values:
Add a Single Text field for Zip/Postal Code and enter the following values:
Add a Domain Single Selection field for State (visible if Country = US) and enter the following values:
Create a Single Value Form Dropdown (orfor Home Country (visible if Country = Other). Alternatively, you can add a Domain Single-Selection field, if you have a Countries domainDomain on your site ). Enter the following values:
|
Exit the Field Group editing mode by clicking on the page name in the Page Tree. |
Step
63:
CopyingCopy the Field Group to the Clipboard
Rw ui steps macro | |
---|---|
To copy the Field Group to the clipboard, hover over it |
.
Click the Clipboard |
icon.
Click the Paste After icon. |
Step 4: Update the Field Values
Rw ui steps macro | |
---|---|
Select the identical pasted field group and change the following field values: |
|
|
<h2>Legal Address</h2>
|
EntityLegalAddress
|
Entity1.Legal
|
Click the Apply button |
at the bottom of the screen to close the Widget Design Screen and apply changes. |
Click the Save button |
at the top of the Widget Details Screen to save these changes. |
Step
95:
TestingTest the Widget
Test the widget by opening it. There should be two field groups – Mailing Address and Legal Address. The Country switch (US or Other) should work independently for each group.