SET_REQUIRED

Resource: Property, Field : AdditionalRentForPets

Description

When PetsAllowed is set to Breed Restrictions, Cats OK, Dogs OK, Number Limit, Size Limit, or Yes, AdditionalRentForPets is required.

Error Messages

1) ERROR,  the Property type is 'residential lease' and the multi-select 'Pets Allowed' field contains only valid values , indicate that the field is required.

Fields referenced within this rule

AdditionalRentForPets 

PetsAllowed 

PropertyType 

StandardStatus 

Syntax with comments and error messages

//[ErrMsg1^ERROR, the Property type is 'residential lease' and the multi-select 'Pets Allowed' field contains only valid values , indicate that the field is required.|LogicBlk1^TRUE|LogicBlk2^TRUE]
// Grandfather clause - Entry or old entry value is not empty or the last standand status was empty or has transitioned from 'incomplete' to 'active' and...
(/*[LogicBlk1]*/(.ENTRY. != .EMPTY.).OR.(.OLDVALUE. != .EMPTY.).OR.((LASTStandardStatus = .EMPTY..OR.LASTStandardStatus.IN.('I')).AND.(StandardStatus.IN.('A')))).AND.
// the Property type is 'residential lease' and the multi-select 'Pets Allowed' field contains only valid values and the entry is empty.
(/*[LogicBlk2]*/(PropertyType.IN.('Rlse')).AND.(COUNT(INTERSECTION(ARRAY(PetsAllowed),SET('BRDR','COK','DOK','NLIM','SLIM','YES'))) = COUNT(ARRAY(PetsAllowed))).AND.(.ENTRY. = .EMPTY.))

Syntax only

((.ENTRY. != .EMPTY.).OR.(.OLDVALUE. != .EMPTY.).OR.((LASTStandardStatus = .EMPTY..OR.LASTStandardStatus.IN.('I')).AND.(StandardStatus.IN.('A')))).AND.((PropertyType.IN.('Rlse')).AND.(COUNT(INTERSECTION(ARRAY(PetsAllowed),SET('BRDR','COK','DOK','NLIM','SLIM','YES'))) = COUNT(ARRAY(PetsAllowed))).AND.(.ENTRY. = .EMPTY.))

Rule Unique ID

ef0be6e8-44b4-4eae-86e7-060789bad436

Rule Number

2