Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

XL.Sheet.DataValidations

Queries details on all data validations.

Component Version macOS Windows Linux Server iOS SDK
XL 16.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "XL.Sheet.DataValidations"; BookRef; SheetIndex )   More

Parameters

Parameter Description Example
BookRef The reference number for the workbook. $ref
SheetIndex The index of the sheet. This number ranges from 0 to XL.Book.SheetCount-1. 0

Result

Returns JSON or error.

Description

Queries details on all data validations.
Returns a JSON array with the details.

NameDescription
indexthe index of data validation;
typethe type of data validation;
opthe relational operator of data validation;
rowFirstthe first row of range;
rowLastthe last row of range;
colFirstthe first column of range;
colLastthe last column of range;
value1the first value for relational operator;
value2the second value for VALIDATION_OP_BETWEEN = 0 or VALIDATION_OP_NOTBETWEEN = 1 operator;
allowBlanka boolean value indicating whether the data validation treats empty or blank entries as valid, 'true' means empty entries are OK and do not violate the validation constraints;
hideDropDowna boolean value indicating whether to display the dropdown combo box for a list type data validation (VALIDATION_TYPE_LIST = 3);
showInputMessagea boolean value indicating whether to display the input prompt message;
showErrorMessagea boolean value indicating whether to display the error alert message when an invalid value has been entered, according to the criteria specified;
promptTitletitle bar text of input prompt;
promptmessage text of input prompt;
errorTitletitle bar text of error alert;
errormessage text of error alert;
errorStylethe style of error alert used for this data validation.

See also

Release notes

  • Version 16.3
    • Added XL.Sheet.DataValidation, XL.Sheet.DataValidationSize and XL.Sheet.DataValidations functions.

This function checks for a license.

Created 21st May 2026, last changed 21st May 2026


XL.Sheet.DataValidationSize - XL.Sheet.DefaultRowHeight