Phone Type comparison if ((!($fields.personPhones.PhoneType.$value() === 'WM')) NOT WORKING
Hello Oracle Team,
Comparing Phone Type with Look Up Code using the following Advanced Expression - But it is not working as expected.
Is comparision of Phone Type supported in 25D in "Contact Info" Page.
Advanced Expression used that is not working is as below:
/* eslint-disable dot-notation */
define([], () => {
'use strict';
/**
*
- @param {object} context
- @return {boolean}
*/
function runCondition(context)
{const { $componentContext, $fields, $modules, $user } = context;
const regex = /^(071|072|073|074|075|07624|077|078|079|079112|079118/;
if ((!($fields.personPhones.PhoneType.$value() === 'WM'))
&& (!($fields.personPhones.PhoneType.$value() === 'HM'))
)
{
return true;
}
return false;
}
return { runCondition };
});
Regards, Balaji
Version (include the version you are using, if applicable):
25D
Code Snippet (add any code snippets that support your topic, if applicable):
0