I'm trying to save data from Smartforms to LISE using a UDT but found that "get_field_value" is causing an error 500. This used to work on previous versions of CMSMS but isn't on version 2.2.21. Below is my UDT so far:
Code: Select all
$data = $params['data'];
$mod = cmsms()->GetModuleInstance('LISEInstance');
if(!is_object($mod))
return;
$alias = $data->get_field_value('Alias');
$obj = $mod->LoadItemByIdentifier('alias', $alias);
$mod->SaveItem($obj);
Thanks,
James