Forums

Hidden / disabled field in email

sylvain.rousse 04 Feb, 2016
Hi all,

I am using CFV5 under Joomla V3.3.6.

I'd like to send an email in the onSubmit event of a form.
In this email I'd like to include a hidden field which I declared in the designer section.
This field is set by a JS function.

When I submit the form, the hidden field value is not appearing in the email (same if the field is disabled)

If I set the visibility of the field to 'visible and enabled', its value appears in the email sent when I submit the form.

Is this a bug ?

Can someone give an explaination ?

In advance thanks to all.

Regards.

Sylvain.
GreyHead 04 Feb, 2016
Hi Sylvain,

No - a hidden input will be submitted in exactly the same way as any other input. A disabled input will not submit at all.

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
sylvain.rousse 05 Feb, 2016
Hi Bob,

thanks for your reply.

I've added a Debug component in the onSubmit event and turned the field setting to hidden.
I've got an email with the value of the hidden field in the email.

I've removed the Debug component and I've got the same result.

May be something went wrong with me as it was the end of the work day :-)

Sorry about the disturbance.

Regards.

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