Page 1 of 1
					
				Send html code via CG BetterForm
				Posted: Mon Sep 24, 2018 12:31 pm
				by Mich-adg
				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 !!
			 
			
					
				Re: Send html code via CG BetterForm
				Posted: Mon Sep 24, 2018 2:39 pm
				by DIGI3
				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.
			 
			
					
				Re: Send html code via CG BetterForm
				Posted: Tue Sep 25, 2018 12:48 pm
				by Mich-adg
				thanks, i tried but it doesn't work. No possibility to add html tags in the template (they're stripped out after saving).
			 
			
					
				Re: Send html code via CG BetterForm
				Posted: Wed Sep 26, 2018 6:42 am
				by rotezecke
				have you tried wrapping your html in {literal} tags?
			 
			
					
				Re: Send html code via CG BetterForm
				Posted: Wed Sep 26, 2018 9:06 am
				by Mich-adg
				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...
			 
			
					
				Re: Send html code via CG BetterForm
				Posted: Wed Sep 26, 2018 2:02 pm
				by DIGI3
				Where is this happening, in an email handler or saving to database or..?