Divider
A thin horizontal rule used to visually separate groups of fields without adding a named heading.
A horizontal rule used to separate groups of fields without introducing a heading. Lighter touch than Section; heavier than spacing alone.
The Divider is a display-only element, it holds no value, never writes to SharePoint, and has no type-specific properties. Style it with the shared border / spacing / colour controls on the Style tab, and gate it with the same visibility rules as any other component.
Properties
| Property | Description |
|---|---|
classNamestring | Custom CSS class applied to the rule for targeting from form CSS. |
customCssstring | Inline custom CSS applied to the element. |
visibleIfexpression | No-code visibility rule, the divider renders only when the expression is truthy, e.g. {ShowDetails} = true. |
visibleIfModesArray<'new' | 'edit' | 'display'> | Limits which form modes the visibleIf rule applies in. Unset = all modes. |
JavaScript recipes
Show a divider's section only after a toggle
// Pair the divider with a visibleIf rule of {ShowMore} = true,
// then reflect the same state on the fields it separates.
f365.events.onChange((e) => {
if (e.fieldKey === 'ShowMore') {
const show = Boolean(e.newValue);
f365.field('Notes').visible = show;
f365.field('Attachments').visible = show;
}
});
Collapse a group on load in display mode
f365.events.onLoad(() => {
if (f365.context.displayMode === 'display') {
f365.field('InternalNotes').hidden = true;
}
});
Related
Related articles
- Spacer
Vertical or horizontal whitespace, invisible but reserves space in the layout grid.
- Section container
A grouping block that visually separates related fields with a heading and optional collapse behaviour.