NextGen Knowledge Center

Change Field Color Trigger

The Change Field Color action enables you to change:
  • Text color for label, active text, data entry (edit), and check box fields
  • Background color for a data entry field
  • Change the color of multiple fields at a time on a template
  • Assign the color from a template field or variable at run time instead of during trigger setup.
  1. Follow the applicable steps in General Trigger Setup.
  2. Select the Change Field Color action.

    The Change Field Color window lists all of the template fields that can change field color.
  3. From the Available Template Fields pane, select each field for which you want to change color, and select Add.
    The selected field displays in the Fields to Change pane and the OK button is enabled. You can select the multiple fields by selecting the Ctrl button.
  4. From the Filter list, select the required filters.
    The Available Template Fields pane now only displays the selected filter.
  5. To obtain the value of the color at run time, do the following:
    1. From the Text Color list, select the field or variable that contains the RGB (red, green, blue) values. These values are formatted as numeric values separated by commas.
    2. From the Background Color list, select the field or variable that contains the RGB values.
  6. To use a selected color, do the following:
    1. From the Text list, select one of the standard colors.
      The Preview window displays the new text color. Black is the default text color.
    2. From the Background (Edit Fields) list, select one of the standard colors.
      The Preview window displays the new background color. White is the default background color.
    3. From the Text or Background list, select Custom Color or the swatch for the last color in the list.
      The Color window displays.
    4. Follow steps 2-5 in Create a Custom Color.
  7. Select the Script It button.
    The Script Clipboard window displays with the script of the label.

    To copy the script to clipboard, select the Copy to Clipboard button.

  8. Select OK to save the action and return to the Trigger Info window.
  9. If necessary, set up a specific condition for the Change Field Color action to be triggered.
  10. Select OK and save your template.