Step 04: After setting up the layout, configuring the webcast list, and arranging the standard form fields, now you can setup the custom form fields. In this step you will be able to add 6 custom field types, update the labels and change the display order of the custom fields. The custom field types that can be added to the template are:
If you are adding a dropdown, radio button or checkbox UDF, the "value" must match exactly to the value that was added in the system otherwise the data will not be recorded. If you need multiple UDFs of the same type, be sure to follow the structure in the code. You can also copy the first curly brace "{" to the last curly brace with comma "}," of that specific UDF and paste in the code.
The sections below are samples of the JavaScript that will need to be updated in the template. Each section below is separated by UDF type. When adding UDFs to the form, the main areas in the code you need to focus on are:
// TEXTAREA
{
labelText: "Textarea Label", // Change label above input field
fieldType: {
inputElem: "textarea"
},
id: "",
name: "UDFXXXX", // Replace XXXX with the UDFNo found in PB, i.e UDFXXXX to UDF1000
required: "1", // 1 = REQUIRED, 0 = NOT REQUIRED
order: 35,
},
// INPUT TEXTFIELD
{
labelText: "Input Label", // Change label above input field
fieldType: {
inputElem: "input",
type: "text" //ADD "text" AS TYPE TO CREATE TEXT FIELD
},
id: "",
name: "UDFXXXX", // Replace XXXX with the UDFNo found in PB, i.e UDFXXXX to UDF1000
required: "1", // 1 = REQUIRED, 0 = NOT REQUIRED
order: 40,
},
// SELECT DROPDOWN
{
labelText: "Select Option Label", // Change label above input field
fieldType: {
inputElem: "select"
},
list: [{
value: "Option 1" // UPDATE VALUE OF SELECT OPTION (MUST MATCH VALUE THAT IS IN THE SYSTEM)
}, {
value: "Option 2" // UPDATE VALUE OF SELECT OPTION (MUST MATCH VALUE THAT IS IN THE SYSTEM)
}, {
value: "Option 3" // UPDATE VALUE OF SELECT OPTION (MUST MATCH VALUE THAT IS IN THE SYSTEM)
}, ],
id: "",
name: "UDFXXXX", // Replace XXXX with the UDFNo found in PB, i.e UDFXXXX to UDF1000
required: "1", // 1 = REQUIRED, 0 = NOT REQUIRED
order: 45,
},
// RADIO BUTTON OPTIONS
{
labelText: "Radio Label", // Change label above input field
fieldType: {
inputElem: "input",
type: "radio"
},
list: [{
value: "Yes", // UPDATE VALUE OF RADIO OPTION (MUST MATCH VALUE THAT IS IN THE SYSTEM)
name: "UDFXXXX", // Replace XXXX with the UDFNo found in PB, i.e UDFXXXX to UDF1000
}, {
value: "No", // UPDATE VALUE OF RADIO OPTION (MUST MATCH VALUE THAT IS IN THE SYSTEM)
name: "UDFXXXX", // Replace XXXX with the UDFNo found in PB, i.e UDFXXXX to UDF1000
}, ],
id: "",
name: "UDFXXXX", // Replace XXXX with the UDFNo found in PB, i.e UDFXXXX to UDF1000
required: "1", // 1 = REQUIRED, 0 = NOT REQUIRED
order: 50,
}
// MULTI-SELECT CHECKBOX
{
labelText: "MultiSelect Checkbox Label", // Change label above input field
fieldType: {
inputElem: "input",
type: "checkbox"
},
list: [{
value: "Option 1", // UPDATE VALUE OF CHECKBOX OPTION (MUST MATCH VALUE THAT IS IN THE SYSTEM)
name: "UDFXXXX", // Replace XXXX with the UDFNo found in PB, i.e UDFXXXX to UDF1000
}, {
value: "Option 2", // UPDATE VALUE OF CHECKBOX OPTION (MUST MATCH VALUE THAT IS IN THE SYSTEM)
name: "UDFXXXX", // Replace XXXX with the UDFNo found in PB, i.e UDFXXXX to UDF1000
}, {
value: "Option 3", // UPDATE VALUE OF CHECKBOX OPTION (MUST MATCH VALUE THAT IS IN THE SYSTEM)
name: "UDFXXXX", // Replace XXXX with the UDFNo found in PB, i.e UDFXXXX to UDF1000
}, ],
id: "",
name: "UDFXXXX", // Replace XXXX with the UDFNo found in PB, i.e UDFXXXX to UDF1000
required: "1", // 1 = REQUIRED, 0 = NOT REQUIRED
order: 55,
},
// SINGLE CHECKBOX
{
labelText: "", // For a single checkbox, it is recommended to add your text to the value in the list below. If you want a label you can add it between the quotes.
fieldType: {
inputElem: "input",
type: "checkbox"
},
list: [{
value: "Sinlge checkbox text displays here", // Change the text that displays next to the checkbox here
name: "UDFXXXX", // Replace XXXX with the UDFNo found in PB, i.e UDFXXXX to UDF1000
}, ],
id: "",
name: "UDFXXXX", // Replace XXXX with the UDFNo found in PB, i.e UDFXXXX to UDF1000
required: "1", // 1 = REQUIRED, 0 = NOT REQUIRED
order: 60,
},
*Please note: All numbers displayed on the left side of the code are based on the line numbers displayed in the text editor when editing the HTML in the template. The code above is just a visual reference of the templated HTML that should be used as a guide. It is HIGHLY RECOMMENDED to update the code that is within the template.
If there are any questions on configuration of the Multi-Registration Template, send an email to: streaminghelp@notified.com.
To download the latest Multi-Registration Template, click here.