asprin
Active member
Hi experts,
I've the following validation class defined in one of the addon options
![1673487879322.png 1673487879322.png](https://xenforo.com/community/data/attachments/279/279054-0de70a54db8471a67302519b2c2e367b.jpg?hash=DecKVNuEca)
And inside this function, I'm attempting to get the value of another optionId
![1673487925128.png 1673487925128.png](https://xenforo.com/community/data/attachments/279/279055-4bf078bcba8859149edff1396194be68.jpg?hash=S_B4vLqIWR)
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
![1673487879322.png 1673487879322.png](https://xenforo.com/community/data/attachments/279/279054-0de70a54db8471a67302519b2c2e367b.jpg?hash=DecKVNuEca)
And inside this function, I'm attempting to get the value of another optionId
![1673487925128.png 1673487925128.png](https://xenforo.com/community/data/attachments/279/279055-4bf078bcba8859149edff1396194be68.jpg?hash=S_B4vLqIWR)
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;
}