I've recently started using CGBetterForms as a replacement for FormBuilder.
With FormBuilder I was able to take the form data and insert it to LISE via a UDT.
I've tried to follow the help page from CGBetterForms and used the "Stop processing dispositions based on a condition" disposition and within that template called my UDT.
I can confirm that the UDT is being triggered but I need a way of getting the form submission values into the UDT. For my test, I'm using the Sample contact form with the following fields: name, email, comments.
Below is my UDT:
Code: Select all
$mod = cmsms()->GetModuleInstance('LISEContactFormDatabase');
if(!is_object($mod))
return;
$obj = $mod->InitiateItem();
$obj->title = $name;
$mod->SaveItem($obj);
Any ideas would be greatly appreciated.
Thanks,
James