Themes allow you to control the look and feel of your Online Actions forms. You can make it easy for colleagues to customize forms based on Themes using custom Merge Fields, which let them add their own images and text to a theme you create.
Using Themes requires knowledge of web development. Building and troubleshooting your Theme code will need to be done by your vendor or someone at your organization experienced with web coding.
If you only want to change your Online Actions form font and colors, you can do so on the Design step without creating a Theme.
Using Themes
Custom Merge Fields allow less technically savvy members of your team to play around with some elements of the Theme to fit the form they're creating. The following are examples where you may want to provide flexibility around design:
Create a Theme for an Event Signup page and use the Image Custom Merge Field so staffers can add a photo
Create a Theme with an optional design element and use the Toggle Merge Field and let your staff decide whether to use it
Create a global Theme for your organization and use the Dropdown Merge Field to let your members, partners, or chapters add their own names
Creating a Custom Theme Merge Field
Navigate to the Themes tab from your Online Actions page and Create New Theme.
Scroll to the Custom Theme Merge Fields section and select Add a Custom Theme Merge Fields.
The window that opens will ask for the following information:
Short Name - Choose a short but descriptive name to show on the Design step and use as a merge field in your code (example: Photo_Caption)
Description - Briefly describe how and where the Merge Field will be used so anyone using it knows what type of content to add
Field Type - Choose the type that best fits the content. For types other than image, you can add a default value to be used if the user doesn't enter one of their own. Check Required to ensure the field is always included when the theme is used.
Dropdown - Users can choose an infinite number of options from a list
Image - Adds the image picker/uploader. To add alt text or a caption, use a separate Text field.
Text - There is no text character limit
Toggle - Let users choose whether to include a option like an image or new section
You can Add, Delete or Reorder Merge Fields at any time.
Once created, custom Merge Fields must be added to the head or body of your theme. Your Merge Fields will appear on the Design step when a user selects the theme while create an Online Actions form.
Viewing Themes in the Design step
When you're ready to create an Online Actions form, a Theme can be applied to your form during the Design step. Users can customize form elements like images, captions, or layouts while the theme takes care of the rest.
Under the Style Your Form section, select Apply a theme to your form. This opens a new section, Published Themes, where you can Select one published Theme.
Creating conditionals with JavaScript
While Online Actions allows you to change the size, position, and other display properties of your form by adding your own CSS stylesheet, you can increase the interactivity of your page with JavaScript. Create conditionals that give users layout options, like determining the width of the left or right columns. Script can be added to either the <head> or <head> Content sections when creating your Theme.




