ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The MandatoryInput property is used to determine if a control is required and to enable or disable the required data input.
Example
IF m_bCriticalAccount THEN
	EDT_Password.MandatoryInput = invalidInputBlocking
END
Syntax

Determining if the required data input is enabled or disabled on a control Hide the details

<Result> = <Control used>.MandatoryInput
<Result>:
Required input behavior:
New in version 2025
invalidInputBlocking
Required input verification is enabled and prevents users from leaving the control if they haven't entered any data.
The control will throw errors in the following cases:
  • Edit control: Error if the control is empty.
  • Editable Combo Box control: Error if the control is empty.
  • Non-editable Combo Box control: Error if no row is selected.
  • Check Box control: Error if no option is checked.
  • Radio Button control: Error if no option is checked.
  • Ranking control: Error if no stars are displayed.
New in version 2025
invalidInputNonBlocking
Required input verification is enabled, but allows users to leave the control, even if they haven't entered enter any data.
New in version 2025
invalidInputNone
Required input verification is not enabled.
<Control used>: Control name
Name of the control used. This control can be:
  • an Edit control,
  • a Check Box control,
  • a Radio Button control,
  • a Combo Box control,
  • a Rating control.

Enabling or disabling required input in a control Hide the details

<Control used>.MandatoryInput = <Required input>
<Control used>: Control name
Name of the control used. This control can be:
  • an Edit control,
  • a Check Box control,
  • a Radio Button control,
  • a Combo Box control,
  • a Rating control.
<Required input>: Integer constant
New required input verification mode:
New in version 2025
invalidInputBlocking
Required input verification is enabled and prevents users from leaving the control if they haven't entered any data.
The control will throw errors in the following cases:
  • Edit control: Error if the control is empty.
  • Editable Combo Box control: Error if the control is empty.
  • Non-editable Combo Box control: Error if no row is selected.
  • Check Box control: Error if no option is checked.
  • Radio Button control: Error if no option is checked.
  • Ranking control: Error if no stars are displayed.
New in version 2025
invalidInputNonBlocking
Required input verification is enabled, but allows users to leave the control, even if they haven't entered enter any data.
New in version 2025
invalidInputNone
Required input verification is not enabled.
Remarks
Until version 2024, the MandatoryInput property could only be used to determine whether input was required (True) or optional (False). It is now possible to determine whether or not a control with required input prevents users from leaving.
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/20/2025

Send a report | Local help