. How to view webform submissions and set up e-mail templates
2. ' If we click on this, we'll see a list of submissions that have been made to this form. So this one was submitted by us and has the user information here, the date it was submitted, the IP address of who submitted it'this can be useful for blocking spam, for example'and the operations. We can view, edit or delete each submission.
3. So if we went ahead and viewed this, I'm going to click on 'View,' we see a list of the data that was submitted. We have some information up top, which was the same information we saw on the list of submissions, and then each input along with the data that was added for the input. You can scroll down and view the whole item.
4. From here we can look at the rest of the submissions by using this navigation: previous and next. I'm going to go ahead and click next. And here's another submission that was made.
5. OK, I'm going to go back to the Contact us page by clicking on 'Contact us' in the breadcrumbs. And one other way that we'll probably need to send out data when this contact form is submitted, is though email. So let's go ahead and click on this Webform tab to edit the settings.
6. And before we talked about there being three different tabs here: form components, emails and form settings. And emails is what we need to modify in order to make an emailable results set when the form gets submitted. So let's go ahead and click on this.
7. This page allows us to create a number of email settings so we can send to various address with specific information from the form. So we don't need to send the entire form to everybody, we can simply pick and choose the fields that we want to send to a specific address. So let's go ahead and begin by adding one.
8. We have two options here: we can select an address, or we can choose one of the components that the user fills out. So for example, if the user fills out an email in the Contact us form and we want to send them a copy of what they submitted, we can grab that by using the component value option here and selecting 'Email. ' I'm going to go ahead and fill out an option for the address, and then I'm going to click 'Add.
9. ' OK. We have our options listed again here. This is a custom to admin at magnifascent dot com.
10. We can select some options for the header, and I'll go ahead and leave this at the default subject, email subject. I'm going to scroll down a little bit more. We have the from address, and the default is the site email that was set when you install Drupal initially.
11. We're going to leave that at the default as well. The from name is the site name, which we set in the site informations page, and we're going to go ahead and leave that at a default as well. I'm going to scroll down.
12. And then we have the email template. And this is the structure of the email that will get sent to the email that we specified above. There's a default template, but we can also customize this template by selecting 'Custom template' here.
13. The idea of this is that we can then modify this template however we'd like. I'm just going to add in some content here. And if we wanted to switch back to the default template it would ask us if we wanted to switch back our changes.
14. And if we click 'OK' it would turn it back to the default template, and we'd see our changes disappear. Now, you might notice some of these tokens from when we were setting default values, or had the option to set default values, for Webform inputs. And we're using those same tokens here again.
15. There's a special token called email values here. And you can see what's available through this by click on this 'Included E-mail Values' collapsed field set. And here, if you read the text it says that all of these that are checked will be included in this email values in output, and we can uncheck values if we don't want to send them.
16. We can also specify specific values inside of our template by using this structure: email, and then brackets, and then the key of the input. Now remember when we created the inputs for Webform we set a safe key, and so that's the key that we would use in order to reference if we were going to build it into our template here. Let's go ahead and leave this as default, and just save it.
17. I'm going to click 'Save e-mail settings. ' Once this has been added, it adds a line to the list of email settings here, and we can add additional ones if we want to; so for example, if you want to send just the email address to our marketing person to add them to our newsletter. If the signup for newsletter input is checked, then we can go ahead and add a new address here for the marketing director, and send them just that email address.
18. There's a few other things you can do with Webform, but we'll cover those in later videos. For now, let's go ahead and jump back to the contact form on the browser where we're not logged in. One thing that would be nice to tweak on this page, is that below the 'Contact us' title is this line that says, 'Published by admin' and then the date.
19. Now this isn't really important information for a page like this, it's more important for, say, a blog entry or a news article. And so it would be good to hide this, plus it doesn't show this information in the mockup. So let's try to line it up with what's in the mockup by hiding it.
20. Go ahead and jump back to the browser where you're logged in as an administrator.
Explore the most important concepts and techniques for site building in Drupal. In this collection, we take on a practical, real-world example and walk through creating and managing content, working with users and installing and configuring modules. A few highlights:
- Build a fully functional calendar page
- Add rich interlinking between pieces of content
- Learn how to evaluate modules, install and upgrade them