0
  1. Navigate to the sys_ui_annotation_type table (Form Annotation Types)
  2. Click the 'New' UI Action
  3. Name it appropriately, e.g. 'Black info box'
  4. Input the following into the Style field (as an example):
    background-color: black;
  5. Save the record
  6. Navigate to a Form Layout and insert a new Annotation, using your new 'Yellow info box' as the type, and input some text.
  7. Save the Form Layout and test.
How to change the styling for an annotation box in form layout
Working Code Asked question November 8, 2023