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
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
Case/capitalization of submission answers in outgoing email content from FormTools? - 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: Case/capitalization of submission answers in outgoing email content from FormTools? (/showthread.php?tid=2198)



Case/capitalization of submission answers in outgoing email content from FormTools? - dethompsOWU - Sep 14th, 2012

Someone asked me this morning if there is a way for me to adjust the outgoing email from FormTools so that a specific submission answer has a different case/capitalization than it had when it was an incoming submission.

Example:

Someone submits a form, and one of the submission answers is "programming is a lot of fun". In the outgoing email, this person would like the answer to say "PROGRAMMING IS A LOT OF FUN" (uppercase) or "Programming is a Lot of Fun" (title case).

I know how to do that sort of thing with PHP string manipulation and whatnot, but is it possible to do it within the content for an outgoing FormTools email?

I've searched a little bit in the documentation and on these forums, but I'm not finding anything relating to this.

Just curious,

Doug Thompson
Manager of Web and Electronic Communications
Ohio Wesleyan University


RE: Case/capitalization of submission answers in outgoing email content from FormTools? - mrGarvin - Sep 18th, 2012

I wonder if Hooks is the way to go for you? That way you can write your own code and have it inserted within the smarty for the e-mail templates...
Read more under module development
http://docs.formtools.org/module_development/index.php?page=hooks

Try searching this forum aswell. Modifying e-mail templates.... or something.



RE: Case/capitalization of submission answers in outgoing email content from FormTools? - dethompsOWU - Sep 18th, 2012

Unfortunately, I'm not much of a programmer, so while Hooks may ultimately be the way to go, I wouldn't even know where to begin attempting to do anything with it.

It's not a huge ordeal if there isn't a way to easily/quickly do the capitalization change. The person who asked me told me it would be one of those "nice to have" types of things rather than a "need to have" type of thing.


RE: Case/capitalization of submission answers in outgoing email content from FormTools? - mrGarvin - Sep 18th, 2012

:-) Know the feeling. There's a lot of "nice to have" ideas on the agenda...
Sadly, I'm no programmer either so I can't come up with an easy answer. To bad Ben isn't around anymore. He is a rock on these kind of matters. But there are several power users here, hopefully someone else picks up the thread.