SET_REQUIRED

Resource: Property, Field : BuyerAgentStateLicense

Description

BuyerAgentStateLicense is required when a non-member classified is used.

Error Messages

1) ERROR, the 'standard status' is 'sold' and 'buyer agent MLS ID' is expected value, indicate that this is a required field.

Fields referenced within this rule

BuyerAgentMlsId 

BuyerAgentStateLicense 

StandardStatus 

Syntax with comments and error messages

//[ErrMsg1^ERROR, the 'standard status' is 'sold' and 'buyer agent MLS ID' is expected value, indicate that this is a required field.|LogicBlk1^TRUE|LogicBlk2^TRUE|LogicBlk3^TRUE|LogicBlk4^TRUE]
// Check that not admin bypass and ...
(/*[LogicBlk1]*/.NOT.(.USERCLASS..IN.('BANGG','BANGP','BANGM','BANGN','BANGQ'))).AND.
// the standard status is 'sold' and...
(/*[LogicBlk2]*/StandardStatus.IN.('S')).AND.
// the 'buyer agent MLS ID' is not 'NONE-AUCTION' and...
(/*[LogicBlk3]*/.NOT.(UPPER(TRIM(CHAR(BuyerAgentMlsId))) = 'NONE-AUCTION')).AND.
// the 'buyer agent MLS ID' matches one of the values within the set or the 'buyer agent state license' is empty and the 'buyer agent MLS ID' is not empty
(/*[LogicBlk4]*/(UPPER(TRIM(CHAR(BuyerAgentMlsId))).IN.('AMNONMEMBER','A39999','FNONMEMBER','CH99999','C29999','DCNONMEMBER','NONMLSE','NOUTSIDE','IRECP','LC99999','MD991111111','MPNONMEMBER','MC99999','M43999','OR95965','VNONMEM','PANONMEMBER','SOUTSIDE','FOUT','TNONMLS','TC999','KRECP','H69999','W79999','YG000000000','699')).OR.((.ENTRY. = .EMPTY.).AND.(.NOT.(BuyerAgentMlsId = .EMPTY.))))

Syntax only

(.NOT.(.USERCLASS..IN.('BANGG','BANGP','BANGM','BANGN','BANGQ'))).AND.(StandardStatus.IN.('S')).AND.(.NOT.(UPPER(TRIM(CHAR(BuyerAgentMlsId))) = 'NONE-AUCTION')).AND.((UPPER(TRIM(CHAR(BuyerAgentMlsId))).IN.('AMNONMEMBER','A39999','FNONMEMBER','CH99999','C29999','DCNONMEMBER','NONMLSE','NOUTSIDE','IRECP','LC99999','MD991111111','MPNONMEMBER','MC99999','M43999','OR95965','VNONMEM','PANONMEMBER','SOUTSIDE','FOUT','TNONMLS','TC999','KRECP','H69999','W79999','YG000000000','699')).OR.((.ENTRY. = .EMPTY.).AND.(.NOT.(BuyerAgentMlsId = .EMPTY.))))

Rule Unique ID

2da0bfc3-9569-41a0-b860-9693f6f1ae32

Rule Number

30