pastvne
Bruce Decker
Porting and testing code from 3x to 4x and running into an issue on a CDD eval options PHP code set.
In 3.x I was able to (but probably should not have) done this:
It now seems that when I var_dump($data), it is null in this eval.
I was going to try to switch to $formModel but a var_dump of it also shows it is null.
Do I need to expose the $formModel myself in the eval code? If so, what instructions would cause $formData or $data to become visible? Or, more properly, how would I access a form value in the CDD Advanced > Eval Options PHP?
In 3.x I was able to (but probably should not have) done this:
Code:
$divisionCode = $data['csp_document_control___division_code_raw'];
It now seems that when I var_dump($data), it is null in this eval.
I was going to try to switch to $formModel but a var_dump of it also shows it is null.
Do I need to expose the $formModel myself in the eval code? If so, what instructions would cause $formData or $data to become visible? Or, more properly, how would I access a form value in the CDD Advanced > Eval Options PHP?
Last edited: