You are here: Function Reference > Alphabetical Listing > S > SetRequiredFld

SetRequiredFld

Use this function to change the required option of a field to Required or Not Required.

Syntax

SetRequiredFld (Required, Field, Section, Form, Group)

Parameter

Description

Required

Enter Yes if you want to make the field required. Enter No if you want to make the field optional.

Field

(Optional) Enter the name of the field. The default is the current field.

Section

(Optional) Enter the name of the section. The default is the current section.

Form

(Optional) Enter the name of the form. The default is the current form.

Group

(Optional) Enter the name of the group. The default is the current group.

Example

Here are some examples:

SetRequiredFld ("Yes", "Myfield", :MyImage", "Myform", "MyGroup");

SetRequiredFld ("Yes", "Myfield", :MyImage", "Myform", );

SetRequiredFld ("Yes", "Myfield", :MyImage", );

SetRequiredFld ("Yes", "Myfield",);

SetRequiredFld ("Yes", );

If you include the Section parameter, but omit the field parameter, the system uses the first field on that section. If you omit the Section and Field parameters, but include the Form, the system looks for the first field on the first section of the form you specified, and so on.

See also