CMS Made Simple Forums
https://forum.cmsmadesimple.org/

Send html code via CG BetterForm
https://forum.cmsmadesimple.org/viewtopic.php?f=7&t=79115
Page 1 of 1

Author:  Mich-adg [ Mon Sep 24, 2018 12:31 pm ]
Post subject:  Send html code via CG BetterForm

Hi,
i'm looking for a tip to send html code (a table for example) via CGBetterForm. I tried via an hidden textarea, but the html tags are deleted after submission and i got a raw text only (even if i have no handler active on the form).
If somebody has a tip...
Thx !!

Author:  DIGI3 [ Mon Sep 24, 2018 2:39 pm ]
Post subject:  Re: Send html code via CG BetterForm

You could probably use the "compute a field value" validator to build the table into the variable. Either that or build the table in the email template.

Author:  Mich-adg [ Tue Sep 25, 2018 12:48 pm ]
Post subject:  Re: Send html code via CG BetterForm

thanks, i tried but it doesn't work. No possibility to add html tags in the template (they're stripped out after saving).

Author:  rotezecke [ Wed Sep 26, 2018 6:42 am ]
Post subject:  Re: Send html code via CG BetterForm

have you tried wrapping your html in {literal} tags?

Author:  Mich-adg [ Wed Sep 26, 2018 9:06 am ]
Post subject:  Re: Send html code via CG BetterForm

Yes i tried, but when you save the "Computed Value Field", html tags are stripped out. Even the "raw" value of a field (in the email template) strips out the html tags...

Author:  DIGI3 [ Wed Sep 26, 2018 2:02 pm ]
Post subject:  Re: Send html code via CG BetterForm

Where is this happening, in an email handler or saving to database or..?

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/