The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
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. |