If your site has Salesforce integration enabled to connect it to your Salesforce instance, you can include custom fields in the Attendee Information form beyond the standard fields available in the Events app. To do so, you must first add the field in Salesforce to BOTH the Ticket Temp and Tickets objects in Salesforce. Each field should have the exact same Field Name as each other.
If you wish, you can conditionally show or hide a custom Salesforce field based on the value of one or more custom Salesforce fields in the Attendee Information section. To do so, you'll first need to add the controlling field or fields to the event.
To add the dependent field:
- Login into the administrator
- If you have recently added the field to the Lead object in Salesforce, click the Clear Cache icon in the header of the administrator. This will refresh data about your Salesforce instance and let Soapbox know you have added a new field.
- Open the Event to which you wish to add your custom field
- Click the Attendee Info tab
- In the Custom Salesforce Fields section, click Add Salesforce Element
- For the Salesforce Field drop down, choose the Salesforce field you wish to add and enter in the relevant field values for the other parameters in the modal. For more details, refer to Adding custom fields from Salesforce to Attendee Information form.
- At the bottom of the modal, for Enable Conditional Logic, select Yes
- For the "Show...this field if…" drop down, leave the selected value as "Show" as this is the only option supported at this time
- Next to "1.", select the controlling field you wish to reference for this conditional field
- In the picklist on the next line, select the operator you wish to use to evaluate the criteria (e.g., equals, doesn't equal, contains, etc)
- In the text parameter to the right of the operator picklist, enter the string you wish to use as part of the criteria
- If you with to add another criteria, click Add New Condition and repeat the process
- For the Logic parameter, leave it blank if you have only one condition. If you have multiple conditions and you wish them all to be true to trigger the display of the conditional field, leave the Logic parameter blank. If you wish some but not all of the conditions to be true to trigger the display of the conditional field, define the Logic using AND / OR, the number of the various conditions, and parentheses if you need to nest the logic. For instance, if you have two conditions and you wish the controlling field to appear if either are true, you can enter "1 OR 2". If you have three conditions and you wish the controlling field to appear if either of the first two conditions and the third condition is true, you can enter "(1 OR 2) AND 3".
- Click Save in the modal
- Click Save for the event