I have a form that has an element like this :
In :
On Submit code - before sending email:
I have a line of php I want to set the value of the companyIDNumber. I've tried :
as well as
So it seams to me that the data structre that the email is pulling from isn't either of those, but I can't figure out what it is.
Thanks in advance.
Don Fletcher
BTW -- I'm using version 2.5 J1.5 RC3.1
<input type="hidden" name="companyIDNumber" value="" >
In :
On Submit code - before sending email:
I have a line of php I want to set the value of the companyIDNumber. I've tried :
JRequest::setVar('companyIDNumber', $returnArray['companyIDNum']);
as well as
$_POST['companyIDNumber'] = $returnArray['companyIDNum'];
So it seams to me that the data structre that the email is pulling from isn't either of those, but I can't figure out what it is.
Thanks in advance.
Don Fletcher
BTW -- I'm using version 2.5 J1.5 RC3.1
Hi Don,
Where does the value of companyIDNumber come from - in the form it's set with value="" ??
Bob
Where does the value of companyIDNumber come from - in the form it's set with value="" ??
Bob
the Onsubmit generates the value.
$returnArray = createCompany($industryIDNum, $formdata);
JRequest::setVar('companyIDNumber', $returnArray['companyIDNum']);
Hi Don,
Ok, by the time the OnSubmit Before code runs the {field_name} substitution has already been done. So far the workaround for that has been to add a place marker in the email template and use strreplace() in the OnSubmit Before box to substitute the new value.
Bob
Ok, by the time the OnSubmit Before code runs the {field_name} substitution has already been done. So far the workaround for that has been to add a place marker in the email template and use strreplace() in the OnSubmit Before box to substitute the new value.
Bob
Hi Don,
you may try that with V3.1 RC4, as the email template will be generated after the onsubmit code has run completely! if you set a post variable then it will appear in the email!
Regards
Max
you may try that with V3.1 RC4, as the email template will be generated after the onsubmit code has run completely! if you set a post variable then it will appear in the email!
Regards
Max
This topic is locked and no more replies can be posted.