Forums

custom code and email

lucchini_silvio 09 Jan, 2016
Hi,
in my form there is a custom field
for example
<input type="text" name="testsix">

I want to send the value of this field by email

the auto template generation creates this code
[code[<tr><td>Custom Code Test</td><td>{custom}</td></tr>[/code]

in the email there is no the value of the field testsix
where is the problem?

another question:
can be saved the field value testsix in a database?

thank you very much for your help
GreyHead 09 Jan, 2016
Hi lucchini_silvio,

The name of the input is testsix so you need {testsix} in the template to show the value,

Bob
lucchini_silvio 09 Jan, 2016
Hi Bob
I did as you indicated
but in the mail there is no the value of the field

where may be the error?

thank you
GreyHead 10 Jan, 2016
Hi lucchini_silvio,

Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.

Note: if you are using the Easy Wizard you can turn on Debug on the Others tab in CFv4 or the Setup tab in CFv5.

Bob
lucchini_silvio 10 Jan, 2016
Hi Bob,
attached you will find the form and the logs

the value of the field testsix
there is the log
but not in the email sent

thankyou
GreyHead 10 Jan, 2016
Hi lucchini_silvio,

I can see it there in the first line of the email?
<tr><td>Custom Code</td><td>TEST-VALUE</td></tr>

Bob
lucchini_silvio 11 Jan, 2016
sorry,
now it works thanks!

what is the best way to validate with a js a custom field?

thank you very much
lucchini_silvio 11 Jan, 2016
i want validate an jquery spinner field
<input readonly id="frbd-adulti" name="adulti">

jquery code:

jQuery(document).ready(function(jQ) {
  jQ('#frbd-adulti').spinner({
  min: 0,
  max: 99
});
});
GreyHead 11 Jan, 2016
Hi lucchini_silvio,

Have you tried adding the normal validation class to it?

Bob
This topic is locked and no more replies can be posted.