The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
I need the HTML option - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: I need the HTML option (/showthread.php?tid=811) |
I need the HTML option - Xpider - Aug 18th, 2010 So After a form is submitted, I receive an email, I log in to admin, all good. I go in and edit the submission to update the 'Status field' to received/preparing. I use html to color these statuses Code: <FONT style="BACKGROUND-COLOR: Lime" >2010-8-10 READY,<B>VERIFIED</B></FONT> as a form of conditional formatting. I have looked into the pre-parser, but that sets the color too early, although I am going to use it to set a color for submissions that are not yet updated. With FT2.02 The html I add shows as plain text, so it's not coloring the fields as I need. I have tried an if statement on the data as it comes out of the db into the field on page, but I apparently suck at if statements, and all my data fields are blank. My question (finally, lol) is this: is there a way to allow html tags AFTER the submission is in the database? Or can someone try a conditional if/then/else and let me know the results? My options are Preparing, Ready, Held, Cancelled and Shipped, But shipped has no bgcolor. In the old FT this worked, inside Edit Submissions, i saw code, but on the submissions list table I saw the color. Thanks All Xpider RE: I need the HTML option - Ben - Aug 21st, 2010 Hi XSpider, Funny! This is something I do in my own work. I use Form Tools for a lot of registration sites and inevitably add a "Status" column to track the status of the registration - "new", "pending", "reviewed", "rejected" etc. In the past I've always hacked the Smarty templates to colour-code those values, and every time I do it, I end up thinking that this should be in the core script. There should be an option to say: if field X has value Y, wrap it in the following tags. Anyway, tangent aside - to your question: Quote:is there a way to allow html tags AFTER the submission is in the database? Yes... but it's the same setting as allowing HTML before the submission is added: the "Strip tags in form submissions" setting on the Edit Form -> main tab should be set to "no". This would let you add the tags, but it would also allow HTML in the incoming submissions. Would this be a problem in your case? - Ben |