I have been working on textfield validation and received good professional help in this community. I am grateful how helpful the members are in here.
I would like to ask a quick question. I used a PHP debugger and the php aspect works fine, I just needed to set the variables differently. But I am working with numbers, not string. However the boolean appears to be not matching when I put this in CRM logic hook.
Now I can more confused why number field validation is having problems.
I hope someone can point me in the right direction. Thank you!
<?php
if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
class number_check
{
function setNumber($bean, $event, $arguments)
{
if ($bean->phone_fax == 111)
{
$bean->phone_home = '222';
}
}
}