Closed (fixed)
Project:
Webform
Version:
7.x-3.13
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2011 at 11:31 UTC
Updated:
25 Jan 2012 at 19:12 UTC
Hi,
is it possible to get submission fields by field key?
I've red the theming.txt. In $submission, I don't have field name but something like
...
[data] => Array
(
[1] => Array
(
[value] => Array
(
[0] => aa
)
)
[2] => Array
(
[value] => Array
(
[0] => bb
)
)
....
If my first field has name 'abc', how to print 'abc' value?
I ask because i would like to align fields as if inside a table, so my user can copy easily in his excel file.
In php, before drupal, I worked with tab to align my message. Is it no more possible?
It was like that
$message .= "Email: {$_POST['email']}\n";
$message .= "Abo Std: {$aboStd}\n";
$message .= "Abo Soutien:{$aboSoutien}\n";
$message .= "case Don: {$caseDon}\n";
Shall I need mimemail and mailsystem to archieve that?
Comments
Comment #1
vernond commentedWhile in edit mode on your Webform, click on the emails tab and set up your email using the token values support.
Comment #2
sahuni commentedThanks for the help
I succeed creating a template of mine in my theme folder, usings tabs, for example :
Besides, I don't understand very well what could be done in interactif template got at url ... /node/45/webform/emails/1 .
If I understand well, it's for small changes. it's easy to change the text, suppress something. Could all the job I mentionned for my real custom template be done inside the interactive template? I tried to use %email[nom] in interactive template, but it just show the constant %email[nom] in the mail. It's not the purpose of interactive template?
Comment #3
vernond commentedI have not yet run into problems with the email template, inserting images and changing the text and whatever else. Maybe you just need to play with it a bit more?
Comment #4
quicksketchClosing after lack of activity.
Comment #5
honigferd commentedHow can you actually access the Submission values in the Template via PHP?
The tokens are "just enough" for the most basic things, but even displaying completely different texts to those in the form seems impossible by just using tokens now. Is there a way around that like "in the old days" where you could just do everything in the E-Mail template file?
Comment #6
quicksketchAs mentioned in the submission guidelines, I don't provide help with custom coding:
Please refer to other resources such as IRC or Drupal StackExchange to ask your questions.
Comment #7
honigferd commented"Please always use the project issue tracker to report bugs, support and/or feature requests. I don't read the forums and I don't reply to direct e-mails for support."
You want clear that up instead of sending people to places that will send people here.