$hidden_items_tmp = $hidden_items; $hidden_items = array(); foreach ($hidden_items_tmp as $hItem) { $tmp = explode("@", $hItem); $hidden_items[] = $tmp[1]; } $hidden_items_tmp = implode(',', $hidden_items); } } if ($has_hidden_items) { $hStr = ''; foreach ($hidden_items as $hItem) { $hStr .= "hideRowById('{$hItem}'); "; } //echo 'something todo'; //print_r($hidden_items); $msg = " @! Autogenerated by Processmaker weboot; Do not modify this content, this is autogenerated alway when dynaform is updated "; if ($o->nodeExists('___pm_boot_strap___')) { $o->remove('___pm_boot_strap___'); } $metaEncrypt = G::encrypt($hidden_items_tmp, 'dynafieldsHandler'); $o->add('___pm_boot_strap___', array('type' => 'javascript', "meta" => $metaEncrypt), "/*{$msg}*/ {$hStr}"); echo $metaEncrypt; } else { //we must to remove the boot strap node; $o->remove('___pm_boot_strap___'); } break; default: echo 'no request param.'; }