Save for Later
This guide was created with Scribe in
2 minutes.
Sign in and create your own!
Exercise 2: Adding a Webform To a Page
Now that we have created a basic contact form in exercise 1, we will display the webform using Blocks and Context. If you would like to learn more about Blocks and Context, please see our Blocks and Context tutorial .
Riley Skipper
|
0 step
|
2 minutes
Pantheonsite
1
Click "Structure"
Zoom Saved
2
Click "Context"
Zoom Saved
3
Click "Add context"
Zoom Saved
4
Click the "Label" field and type "Contact Us".
Zoom Saved
5
Save.
Zoom Saved
6
Click "Add condition". This will connect our context to our page.
Zoom Saved
7
Click "Request Path (system)"
Zoom Saved
8
Click the "Pages" field. Add in the path of the page you want to add the form to. In this case, it's "/contact-us".
Zoom Saved
9
Click "Add reaction"
Zoom Saved
10
Click "Blocks"
Zoom Saved
11
Click "Place block"
Zoom Saved
12
Click the "Filter by block name" field and type "webform" to find webforms.
Zoom Saved
13
Click "Place block"
Zoom Saved
14
Click the "Webform" field.
Zoom Saved
15
Begin tying the name of your form and select your form from the dropdown. In this case, it's "Contact Us Test".
Zoom Saved
16
Untoggle the "Display title" field.
Zoom Saved
17
Click this dropdown and select "Main Content".
Zoom Saved
18
Add block.
Zoom Saved
19
Now the webform is being displayed on your context, and context is reading your page using the path you entered.
Zoom Saved
20
Save and continue.
Zoom Saved
Have something to say?
Create an account to leave messages for the author to see!
Create an account
Feedback
This Scribe is in tip-top shape!
Leave feedback if there are any issues with this Scribe