For Form Builder, how do I get value of form_id in UDT
Posted: Thu Feb 14, 2013 7:34 pm
This is very basic stuff, but I cannot seem to get the value of the Form Builder Smarty variable form_id in my UDT.
I have seen a couple of references that use something like
$gCms = cmsms();
$formid = $params['form_id '];
but this is not working for me. (The form field values are accessible through the $params array.)
I also tried accessing it through
$smarty = $gCms->GetSmarty();
$formid = $smarty->get_template_vars('form_id');
again with no luck.
I am sure this is very simple, but I have not yet been able to figure it out and would appreciate some help.
Thanks,
Bob
I have seen a couple of references that use something like
$gCms = cmsms();
$formid = $params['form_id '];
but this is not working for me. (The form field values are accessible through the $params array.)
I also tried accessing it through
$smarty = $gCms->GetSmarty();
$formid = $smarty->get_template_vars('form_id');
again with no luck.
I am sure this is very simple, but I have not yet been able to figure it out and would appreciate some help.
Thanks,
Bob