Hello community
I am currently working on a script in Sage CRM 2023 R2 based on the examples provided in the admin documentation. However, I am facing an issue with my conditional logic, and despite following the examples, it doesn't seem to be working as expected.
Here's the specific code snippet I'm having trouble with:
if (Values('quit_listprice') > 0 && Values('quit_listprice') !== Values('quit_quoteprice') && CurrentUser.user_primarychannelid !== 7) { Valid = false; ErrorStr = "Please ask authorization from Management"; }
// The code isn't working as expected, even when I remove the channel check from the logic.
I would greatly appreciate any insights, suggestions, or corrections that the community can provide.
Thank you in advance for your assistance!
Code in the admin documentation
if (Values('oppo_certainty')<25 && Values('oppo_priority')!='Low')
{
Valid=false;
ErrorStr="please set the priority to Low";
}