Go to: Synopsis. Return value. Related. MEL examples.

Synopsis

int isValidUiName(string $name)

Return true if the string is a valid user interface name. A valid user interface name begins with a letter and is followed letters, digits, underscores or spaces.

Return value

None

Related

isValidObjectName, isValidString

Arguments

Variable Name Variable Type Description
$namestringThe name string to test.

MEL examples

	isValidUiName("Name"); // Will succeed.

	isValidUiName(" Name"); // Will fail.

	isValidUiName("1 Name"); // Will fail.

	isValidUiName("New Name"); // Will succeed.

	isValidUiName("New_Name"); // Will succeed.

	isValidUiName("New Name 1"); // Will succeed.