Page 1 of 1

NMS Template Select Wont Switch

Posted: Wed Dec 05, 2007 8:46 pm
by warren1709
Hi Guys,

Ive got the latest versions of NMS version 1.0.1 and CMSMS 1.2.2 installed however when I go to create a message and select a newsletter template I get a error and the template just wont switch:
Line 68
Char 1
Error 'document.m1_moduleform_a' is null or not an object
Code: 0
URL: mydomain.com/admin/moduleinterface.php?mact=NMS,m1_compose_message,0
looks like onchange calls for submitting of form:m1_moduleform_a
but the form is called m1_moduleform-a

Any ideas what file I need to edit to change this?

Kind Regards,
Warren

Re: NMS Template Select Wont Switch

Posted: Thu Dec 06, 2007 12:31 am
by warren1709
Heres an update

tried modifying the NMS.module file and changing this but still displays the same error.

Here is the original code extract for the template drop down selection menu:
$this->smarty->assign('templatelist',
  $this->CreateInputDropDown($id,'templateid',
     $mytemplates,
     -1,
     $templateid,
     'onchange="document.'.$id.'moduleform_a.submit()"'));
If anyone has any idea whats causing the prob feedback would be great.

Thanks in advance,
Warren