Set_userdata in event->attach of FORM not work


According to the documentation, in loading a FORM, you can return a value as userdata, I am trying but it does not return it to me. … etuserdata

function put_userdata($row){

$form = new FormConnector($conex,‘MySQLi’);

In grid, this return cel1,cel2 and active=true but en form onli return cel1 and cel2.


I can confirm the behavior. The PHP connector doesn’t include the user-data in XML output for the Form.
If issue still actual, I can provide an updated class, or you can adjust FormConnector yourself

Next is the place where FormDataItem is serialized to XML … or.php#L17

And next is the code which need to be added to include user-data … r.php#L112