Get Started: AI Resources for Oracle Cloud HCM – Go Here
Progress with Redwood: Redwood Resources for Oracle Cloud HCM - Go Here
Progress with Redwood: Redwood Resources for Oracle Cloud HCM - Go Here
Address lenght condition not working
Summary:
Hello,
I'm trying to restrict the character lenght to 10 for one of the address field, in the address section.
I created an advanced expression but this one is not triggering any error message when I'm testing. Below the expression:
function runCondition(context) {
const { $componentContext, $fields, $modules, $user } = context;
if (((($componentContext.Country.includes('Germany') || $componentContext.Country.includes('Austria'))))) {
return true;
}
const AddressLine3 = $fields.personAddressAll.AddressLine3.$value();
const regexp = new RegEx("^[a-zA-Z0-9]{1,10}$","");
const AddressLine3Check = regexp.test(AddressLine3);
if (AddressLine3Check === false) {
return true;
}
return false;
I followed the same steps as I saw in a demo, but I don't have the expected behavior
0