To add custom fields to the calendar, use this builder that will generate the code to construct the fields, or you can manually edit the form.json file using this structure:
{
"dataType": "dataType",
"class": "class",
"fields" :
{
"fieldLabel": "fieldInstruction",
}
}
- dataType: the input type for the field, allows: input,input-upload,select,radio,checkbox,textarea
- class: the class for the input
- fields: multiple fields for the same input group
- fieldLabel: the html field label
- fieldInstruction: the instructions for the system to recognize
To build fieldInstructions according to the dataType you need to follow this instruction:
<name> For HTML name tag
~placeholder~ For HTML placeholder tag
values{a,b,c} For HTML option values tag
labels(A, B, C) For HTML option tag
*tablename* For a table name on the same database
#name# For the column of the table
+file+ For the HTML input file. Only one input file and the system handles the upload process itself.
And you can build the instruction set as this:
pullFrom-tableName-*customersTable*-fields-#customerName#-name-<customers_name>
pullFrom-options-name-<reads>-values{book,ebook,article}-labels(Book, eBook, Article)
*You might have a look at the generated or existing configuration so you can have a see how its done.