The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
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>
etc
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