Page 1 of 1

[solved] CGBetterForms include HTML in output

Posted: Thu Jan 18, 2018 7:19 pm
by paulbaker
CGBetterForms (v. 1.3.1) is very lovely, it's a much better way of creating and setting up forms than FormBuilder. Thanks Calguy!

One thing I am stuck on though...

In the Form Output tab ("Smarty template for the final message to display to the user") I have some smarty which correctly calculates a score. Then I have:

Code: Select all

You got {$total}/20 correct.
which displays fine. However as soon as I add any HTML tag in this box (e.g. <strong>) none of it displays, suggesting an error. What am I doing wrong?

Thanks

Re: CGBetterForms include HTML in output

Posted: Thu Jan 18, 2018 8:32 pm
by rotezecke
i've never used this module, but have you tried:
{literal}<strong>{/literal}

Re: CGBetterForms include HTML in output

Posted: Fri Jan 19, 2018 1:59 pm
by paulbaker
Yep, that's exactly what I needed. Thanks rotezecke!