Reputation: 1
Sorry if this is the wrong place to ask, but I'm writing this validation rule in Oracle Sales Cloud 11 on the account object (field : Address Line 1), and it always returns false even if true, I don't get it. I've tried several formulations, but the issue remains, thanks a lot for your help.
if (PrimaryAddressLine1 == null) {
return false
}
else {
return true
}
Upvotes: 0
Views: 351
Reputation: 1
You can try the following code:
if (!PrimaryAddressLine1) { return false } else { return true }
Upvotes: 0
Reputation: 167
Instead of putting the validation at object level, can you place the required/mandatory requirement by configuring in Manage Address Formats and handle it there. Making Address Line 1 required at this Level will make it required across objects where OOTB Address Section is used.
Upvotes: 2