asprin
Active member
Hi experts,
I've the following validation class defined in one of the addon options

And inside this function, I'm attempting to get the value of another optionId

So is possible to get what its value is in the aforementioned callback function?
I've the following validation class defined in one of the addon options

And inside this function, I'm attempting to get the value of another optionId

So is possible to get what its value is in the aforementioned callback function?
PHP:
public static function checkFoo(&$value, \XF\Entity\Option $option, $optionId)
{
/*
if(genMulFirst == 'somevalue')
{
then go ahead and perform some validation for $value
}
*/
return true;
}