Anchor a Control

You can anchor Controls on a Form to make your Controls grow or shrink to use available space.

Warning:

Although you can anchor Form Controls, Cherwell recommends using Adaptive Layouts to determine how Forms adapt to changes in screen size. Adaptive Layouts are effective across CSM Browser Client, CSM Desktop Client, and CSM Portal. For more information on Adaptive Layouts, see Adaptive Layouts.

If you use anchoring, Form rendering may vary across the CSM Clients.

To anchor Controls on a Form, use the Form Editor. You can access the Form Editor from within a Blueprint in CSM Administrator. To select anchoring options, choose the sides of the Form to which the Control should be anchored (you can use combinations). Options include:

  • Left: Control keeps the same distance to the Left edge and moves farther away from the Right edge when the Form gets bigger.
  • Top: Control keeps the same distance to the Top edge and moves farther away from the Bottom edge when the Form gets bigger.
  • Right: Control keeps the same distance to the Right edge and moves farther away from the Left edge when the Form gets bigger.
  • Bottom: Control keeps the same distance to the Bottom edge and moves farther away from the Top edge when the Form gets bigger.
  • Left and Right: Distance between both horizontal edges remains the same, and the Control stretches to fill the horizontal space when the Form gets bigger.
  • Top and Bottom: Distance between both vertical edges remains the same, and the Control stretches to fill the vertical space when the Form gets bigger.
  • All (Left, Right, Top, and Bottom): Distance between all edges remains the same and the Control proportionally stretches to fill both the horizontal and vertical space when the Form gets bigger.

Good to know:

  • Top and Left is the default.
  • If the Control is not anchored to any edge, it floats between the two edges.
  • Anchoring options are available on the Form Editor toolbar and context (right-click) menu.
  • For tips on working with Controls and the Form Editor, see Form Editor Behaviors.

To anchor a Control:

  1. Open a Form in the Form Editor
  2. Select a Control.
  3. On the Form Editor toolbar, select the drop-down arrow on the Anchoring button Anchoring Button.
  4. Select an anchoring option (you can use combinations).
  5. To save your changes, click Select.

    Warning: If you do not click Select, your changes are abandoned.
  6. To commit the changes, publish the Blueprint by selecting File > Publish Blueprint.

    Alternatively, to continue making other changes, you can select File > Save Blueprint.