Resource: Property, Field : BuyerAgentStateLicense
Description
Check to see that no digit is repearing 7 to 20 times for BuyerAgentStateLicense.
Error Messages
1) ERROR, the BuyerAgentStateLicense field format is invalid.
Fields referenced within this rule
BuyerAgentStateLicense
StandardStatus
Syntax with comments and error messages
//[ErrMsg1^ERROR, the BuyerAgentStateLicense field format is invalid.|LogicBlk1^FALSE|LogicBlk2^TRUE|LogicBlk3^FALSE]
// Administrator bypass... allow bypass of rule logic for testing.
(/*[LogicBlk1]*/.USERCLASS..IN.('BANGG','BANGP','BANGQ')).OR.
// If entry is not empty and has changed...
IIF((/*[LogicBlk2]*/(.ENTRY. != .EMPTY.).AND.(.ENTRY. != .OLDVALUE.)),
// Then, if standard status is 'closed', then check the no digit is repeated 7 to 20 times, else accept entry...
(/*[LogicBlk3]*/IIF((StandardStatus.IN.('S')),.NOT.(MATCH('(^1{7,20}$)|(^2{7,20}$)|(^3{7,20}$)|(^4{7,20}$)|(^5{7,20}$)|(^6{7,20}$)|(^7{7,20}$)|(^8{7,20}$)|(^9{7,20}$)|(^0{7,20}$)',TRIM(.ENTRY.))),.TRUE.)),
// Else accept empty entry.
.TRUE.)
Syntax only
(.USERCLASS..IN.('BANGG','BANGP','BANGQ')).OR.IIF(((.ENTRY. != .EMPTY.).AND.(.ENTRY. != .OLDVALUE.)),(IIF((StandardStatus.IN.('S')),.NOT.(MATCH('(^1{7,20}$)|(^2{7,20}$)|(^3{7,20}$)|(^4{7,20}$)|(^5{7,20}$)|(^6{7,20}$)|(^7{7,20}$)|(^8{7,20}$)|(^9{7,20}$)|(^0{7,20}$)',TRIM(.ENTRY.))),.TRUE.)),.TRUE.)
Rule Unique ID
f7d6b11f-95e1-4516-81db-3b9b240babca
Rule Number
31