Quickstart Guide
Here I will walk you through creating your first Formz form:
- Go to the extras menu in MODX and select
Formz Builder
.
Figure 1 Component Menu - Click on
Create a new Form
, once the interface is ready we can start by entering the required fields. TheName
field is required and so is theSuccess Message
, all the other fields can remain default.
Figure 2 Create a new Form - Enter "Contact" in the
Name
field and "Thank you for contacting us" in theSuccess Message
field.
Figure 3 Form Required Fields - Click on
Save
and the browser should reload and you will now be in edit mode. - Click on
Fields
tab and this is where you enter the fields you want available to your form.
Figure 5 Fields Tab - Above the Grid you will see
Add Field
action at the top right. Click on this button and a form window will open. - The
Label
field is the only required field on this form, we will enter "Name" for our Label.
Figure 7 Field Window- Now click on the
Properties
tab and check therequired
checkbox. This will make sure that the user has to enter a name in order to submit the web form.
Figure 8 Properties Tab- Repeat step 7 but this time lets enter in the
Label
field "Email" and on theProperties
tab lets check therequired
checkbox and select from theValidation
field "Email".
Figure 9 Validation Field- Repeat step 7 but this time lets enter in the
Label
field "Message", then change theType
field to "Textarea" and on theProperties
tab check therequired
checkbox
Figure 10 Type Field- Lets create our Template Variable to display our Form on the website, lets enter in the
Name
field "form" and in theCaption
field "Form".
Figure 11 Template Variable- Click the
Input Options
tab and set theInput Type
field to "formz".
Figure 12 Input Options- Click the
Output Options
tab and set theOutput Type
field to "formz".
Figure 13 Output Options- Click the
Template Access
tab and set which template you want to have access to your Template Variable.
Figure 14 Template Variable Tab- Place you newly created Template Variable
[[*form]]
inside your template or in the content area of the page you will create. I will do the latter for this guide.
Figure 15 Page Content- Click the
Template Variables
tab and select your "Contact" from theForm
field.
Figure 16 Template Variable TabCongratulations you have created your first web form with Formz, now go and create more and explore the features.
- Now click on the