10,730
edits
(→Forms) |
|||
Line 78: | Line 78: | ||
When editing forms in Woodford, click '''Edit Styles''' on the toolbar to configure styles for form cells. On project scope, the styles are shared; i.e., all entity forms in a particular project share the same list of styles. It does not matter from which form you open the style editor. Click '''Dependencies''' to see all components where a style is used. | When editing forms in Woodford, click '''Edit Styles''' on the toolbar to configure styles for form cells. On project scope, the styles are shared; i.e., all entity forms in a particular project share the same list of styles. It does not matter from which form you open the style editor. Click '''Dependencies''' to see all components where a style is used. | ||
=== Generic vs. component-specific styles === | |||
Forms can display various field types, such as text fields, radio buttons, date pickers, etc. Originally, form styles were generic, i.e., a single generic style covered all field types. Since [[Releases/Summer_2023|release 16.1]], you can define separate styles for each field type. Generic styles continue to be supported. | |||
[[File:Create-a-new-style.png|300px]] | |||
Styles are defined for the entire form cell - that includes the field label, field value (input), and supporting text. | |||
[[File:Different-parts-of-the-form.png]] | |||
To keep the style editor organized, you can find settings for each of these in a separate tab. Some parameters are defined at top level: | |||
* '''Component type''': Displays the component type, such as SegmentedButton or TextField. This parameter is set during style creation and cannot be modified. | |||
* '''Name''' – Name of the style. | * '''Name''' – Name of the style. | ||
* ''' | |||
* ''' | === Label tab === | ||
* ''' | |||
* ''' | * '''Show label''' – Show or hide label. | ||
* ''' | * '''Font name''' – Select the font. | ||
* '''Label position''' – " | * '''Relative size''' – Adjusts the label size compared to the default size. Use a positive number to increase size or a negative number to decrease size. | ||
* '''Alignment''' – Align label text left, center, or right. | |||
* '''Decoration''' – Apply text decoration to the label (bold, italics, strikethrough, underline). | |||
* '''Text color''' – Color of the label text. | |||
* '''Auto height''' – Makes the field row higher if necessary for the label. | |||
;Container layout | |||
* '''Label position''' – "Auto" follows the default placement of the label according to the platform settings (as is on not customized MobileCRM) | |||
:: "Left" places the label on the left side of the field; "Right" places the label on the right side of the field. | :: "Left" places the label on the left side of the field; "Right" places the label on the right side of the field. | ||
:: "Top" places the label on the top of the field (can be useful when the label is long). | :: "Top" places the label on the top of the field (can be useful when the label is long). | ||
:: "BorderTop" places the label into the top border of the field. | :: "BorderTop" places the label into the top border of the field. | ||
* ''' | ;Define width for label and input | ||
* ''' | * If you use label position "Left" or "Right", you can configure the proportion of the screen that should be used for label and value. Either use one of the predefined splits or enter a custom one. | ||
* '''Image query''' – Specifies where the image is taken from (entity image). See [[ImageQuery]] above. | |||
* ''' | === Input tab === | ||
* ''' | |||
* ''' | * '''Font name''' – Select the font. | ||
* ''' | * '''Relative size''' – Adjusts the input size compared to the default size. Use a positive number to increase size or a negative number to decrease size. | ||
* ''' | * '''Alignment''' – Align value text left, center, or right. | ||
* ''' | * '''Decoration''' – Apply text decoration to the label (bold, italics, strikethrough, underline). | ||
* ''' | * '''Text input height''' – Force text to a single line, allow text to wrap, or display a larger multi-line input. | ||
* '''Border width''' – Enter width in pixels if you want a border around your input. | |||
* '''Radius''' – Use rounded corners for the borders? Set an appropriate corner radius in pixels. | |||
; Color styles | |||
* '''Enabled text''' – Color when the input is enabled. | |||
* '''Disabled text''' – Color when the input is disabled. | |||
* '''Background''' – Color of the input field’s background. | |||
* '''Border''' – Color of the input field’s border. | |||
* '''Icon button''' – Color of inline buttons (for URL, Phone, Barcode… formatting). | |||
* '''On Change rules trigger''' – Select when the [[On Change]] rules are executed for this field: Whenever you modify the value in the field, or only when the field loses focus. | |||
=== Component-specific tab === | |||
;Segmented buttons | |||
* '''Max items count''' – Enter the maximum number of options displayed as a segmented button. Option sets with more options are displayed as a dropdown. | |||
; Dropdown & segmented buttons (applicable for Option set & Two options) | |||
* '''Show''' text, icon, or both. | |||
; Date & time picker intervals | |||
* '''Minutes''' – Enter how granular time selection you want. For example, use "30" if you only want to allow half hours (x:30) and full hours (x:00). | |||
; Image query | |||
* '''Condition''' – Specifies where the image is taken from (entity image). See [[ImageQuery]] above. | |||
; Container style | |||
* '''Background color''' – Select the background color of the item. | |||
* '''Error color''' – Color of the field in case of an error or when the field is Business-Required. | |||
=== Supporting text tab === | |||
* '''Show''' – Show or hide the supporting text. | |||
* '''Font name''' – Select the font. | |||
* '''Relative size''' – Adjusts the supporting text size compared to the default size. Use a positive number to increase size or a negative number to decrease size. | |||
* '''Alignment''' – Align supporting text left, center, or right. | |||
* '''Position''' – Align supporting text up or down. | |||
<!-- | |||
* '''Image base path''' – Path to the image’s project folder (project image). | * '''Image base path''' – Path to the image’s project folder (project image). | ||
* '''Image alignment''' – Sets the alignment of a picture, if used. TextOnly shows the label of the field, ImageOnly shows the image without a label. The remaining options represent the alignment of the image inside the field. | * '''Image alignment''' – Sets the alignment of a picture, if used. TextOnly shows the label of the field, ImageOnly shows the image without a label. The remaining options represent the alignment of the image inside the field. | ||
--> | |||
== Questionnaire Designer == | == Questionnaire Designer == |