ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 = True
END
Syntax

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

<Result> = <Control used>.MandatoryInput
<Result>:
  • True if input is required. In this case, 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.
    • Rating control: Control marked as with errors if no stars are displayed.
  • False otherwise.
<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>: Boolean
  • True if input is required. In this case, 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.
    • Rating control: Control marked as with errors if no stars are displayed.
  • False otherwise.
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/12/2024

Send a report | Local help