Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
 * Custom Validation rule: Must be Dog or Cat (case insensitive)
 * @param {Object} obj The value that will be validated
 * @returns {Boolean} True when successful
 * @properties={typeid:24,uuid:"655B9F0E-A1A2-4B0B-84CD-8E299546DB57"}
function validateColumn(obj) {
	return 'Dog'.equalsIgnoreCase(obj) || 'Cat'.equalsIgnoreCase(obj);

Column Validator from Java


Code (plugin)

A Column validator can be contributed by a java plugin. See Providing converters and validators from plugins for more information.