I want to include an address and logo in a form. In the past I have used an HTML control and used PHP to fill the control. But since I need to be able to email the form I planned to shift to a text area and use 'include value in email'. I have inserted the HTML into the place holder and set 'disabled=disabled' in the Extra Attributes. A ll works fine except that the WysWig controls are visible even though the control is disabled.
So two questions:-
1. Can I set an attribute to hide those controls OR
2. How can I make an HTML control 'include value in email
Regards
Nick
So two questions:-
1. Can I set an attribute to hide those controls OR
2. How can I make an HTML control 'include value in email
Regards
Nick
Can't you just display the HTML you want, and add the HTML to your email body as well?
Well yes I can and the current version of the site does just that - writes the whole html text (of a receipt) using php/dbo. I then use PHP mailer to email the results or JQ print to print it. I had just hoped to use the CF6 email options and hence bypass the PHP and mailer code.
Maybe I can't. Or maybe use controls to display the logo and address separately.
Maybe I can't. Or maybe use controls to display the logo and address separately.
Return the string in a PHP block and use {var:phpblockname} or if it's HTML and PHP mixed use the custom code block set to return as var
This topic is locked and no more replies can be posted.