function createNewItem() { $oFields = new BxDolPFM(1); $iNewID = $oFields->createNewField(); header('Content-Type:text/javascript'); echo '{"id":' . $iNewID . '}'; }
function createNewItem() { $oFields = new BxDolPFM(1); $iNewID = $oFields->createNewField(); bx_import('BxDolInstallerUtils'); $oInstallerUtils = new BxDolInstallerUtils(); $oInstallerUtils->updateProfileFieldsHtml(); header('Content-Type:text/javascript'); echo '{id:' . $iNewID . '}'; }