Field_SetRequiredFormat()

Examples


The Field_SetRequiredFormat() function sets the font style and color to use for prompts linked to required fields when the Show Required Fields menu item is selected.

Syntax

Field_SetRequiredFormat(font_style, font_color)

Parameters

font_style – An integer that sets one of the following options:

[spacer]

Value

Description

0

Plain text

1

Bold

2

Italic

3

Bold and italic


font_color An integer that sets one of the following options:

[spacer]

Value

Description

0

Black

1

Red


Return value

The boolean value true.

Comments

For a prompt to appear with the characteristics defined using this function, the prompt must be linked to a field in the Layout window, and the field’s Required property in the Properties window must be set to true. When a user chooses the Show Required Fields menu item, all prompts linked to required fields will appear in the specified font style and color.

Use -1 as a parameter value if you do not want to change that format. For example, use 1 as the font_style and -1 as the font_color to change the style to bold and to leave the color unchanged.


Documentation Feedback