Set_userdata in event->attach of FORM not work

hi,

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.
docs.dhtmlx.com/connector__php_ … etuserdata

function put_userdata($row){
$row->set_userdata(“active”,true);
}

$form = new FormConnector($conex,‘MySQLi’);
$form->event->attach(“beforeRender”,“put_userdata”);
$form->render_sql($query,‘id’,“cel1,cel2”);

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

thaks.

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
github.com/DHTMLX/connector-php … or.php#L17

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