• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Send html code via CG BetterForm
PostPosted: Mon Sep 24, 2018 12:31 pm 
Offline
Forum Members
Forum Members

Joined: Sat Aug 02, 2008 9:08 pm
Posts: 185
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 !!


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Send html code via CG BetterForm
PostPosted: Mon Sep 24, 2018 2:39 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 760
Location: Victoria, BC
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.

_________________
Not getting the answer you need? CMSMS support options


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Send html code via CG BetterForm
PostPosted: Tue Sep 25, 2018 12:48 pm 
Offline
Forum Members
Forum Members

Joined: Sat Aug 02, 2008 9:08 pm
Posts: 185
thanks, i tried but it doesn't work. No possibility to add html tags in the template (they're stripped out after saving).


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Send html code via CG BetterForm
PostPosted: Wed Sep 26, 2018 6:42 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Fri Apr 18, 2008 9:34 pm
Posts: 342
Location: Nimbin, Australia
have you tried wrapping your html in {literal} tags?


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Send html code via CG BetterForm
PostPosted: Wed Sep 26, 2018 9:06 am 
Offline
Forum Members
Forum Members

Joined: Sat Aug 02, 2008 9:08 pm
Posts: 185
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...


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Send html code via CG BetterForm
PostPosted: Wed Sep 26, 2018 2:02 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 760
Location: Victoria, BC
Where is this happening, in an email handler or saving to database or..?

_________________
Not getting the answer you need? CMSMS support options


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting