FORM PLUGIN - execute sms plugin if checkbox is ticked

brian

Member
I have been using the sms form plugin and i would like the ability to choose whether or not the form plugin is triggered depending on a condition [checkbox being ticked] within the form.

I was wondering if I could execute the sms script through a php plugin, any suggestions on how to tie sms plugin into a php plugin which will execute on a condition?

Thanks for any help in advance.
 
Perfect, saved me a lot of time!
I had also been looking to add an eval for recipients,

i would like to add them based on this query;
PHP:
$myPhonenumbers = array();
$myUserids = $formModel->getElementData('task_list_3_repeat___user', true);
foreach ($myUserids as $myUserid) {
   $myUserid = is_array($myUserid) ? $myUserid[0] : $myUserid;
   $myPhonenumbers[] = JFactory::getUser($myUserid)->get('phone');
}
return implode(',', $myPhonenumbers);

I will try to copy the eval code from email plugin, any further help would be appreciated and ill let you know how i get on.

Thanks Hugh!!
 
Last edited:
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top