User Tools

Site Tools

Translations of this page?:

en:template:group_of_fields

This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

====== Group of Fields ====== **Group of Fields** are meant to store other fields in order to sort data, present less information to the user, and even mask optional data. A group of fields appears as a Label with and Expand button. When clicked, all the other fields attached to the group are displayed. They can be hidden again by closing the group. The ''name'' of the group is very important, as it is used by the other fields to specify the attachment. In the example below, there is a standard text field ''name'', another text field ''surname'', that is attached to group ''optional'', and that group. <code javascript> "fields": [ { "name": "name", "label":"Name", "default": "Default value" }, { "name": "surname", "label":"Surname", "group":"optional" }, { "name": "optional", "label":"Optional fields", "type": "group", "expanded": false } ] </code> ===== Using as a variable ===== With each **Text input** field created, a variable is created. To use it in the ''canvasFields'', have the value of a property set to the string ''$myfieldname''. It will be replaced by the value set in the field. You can use specific [[Advanced_String_Variables#text_input|Advanced Variables]] to access and edit the text of that field (upperCase, lowerCase, ...).

en/template/group_of_fields.1485264984.txt.gz · Last modified: 2017/01/24 14:36 by Nicolas Ronvel