Collapse AllExpand All

4.3. Form

Forms are another one of the available content types. With forms, you have the ability to create data entry forms that allow your customers and prospects to engage with and interact with you online. For example, a simple Contact Us form lets users communicate with you on subjects of interest to them. Your portal can contain multiple different forms, with varying levels of complexity. Users with manager-level privileges can create and edit forms.

Create a new form

To add a new form, follow these steps:

  1. Go to Admin > Content > Add Content > Form.

  2. Fill out the title and description for the form.

  3. The description appears above the form on your page.

  4. Then add a slug (a.k.a.. alias). The text of the slug will be used in the URL for the form. For example, the slug "contact us" would be displayed as https://www.example.com/contact-us.

  5. To add the form to your portal's menu structure, select the Provide a menu link option. This is optional.

  6. Create a title for the menu link and an optional description.

  7. Specify where in the menu structure you want the form to appear by using the Parent Item drop-down feature. Choose the parent menu item you want the form to appear under.

  8. Click SAVE.

Add fields to a form

Once you've created your form, you'll need to define the fields it contains, and other information. To do this, follow these steps:

  1. If you are still editing your form, you will see an option for Webform in the Admin menu. Click on this option. (If you do not see it, look for the Webform tab next to the Edit tab on the main form view.)

  2. Start by adding the label you want your form to contain in the New component name field. For example, a Contact Us form might include the following fields:

    • First Name

    • Last Name

    • Email Address

    • Phone Number

    • Date to Call for Demo

    • Comments

  3. Select the type of field for each field you create. Types of fields include text field, email address, text area, options, etc. Below is an example of various components and fields:

    Webform fields

  4. If the field of information is required, check the Required checkbox. This will tell the system that the user is not able to submit the form until all of the required fields are filled out. If a user tries to submit a form without answering a required field, they will receive an error.

  5. Click ADD.

  6. You are free to update the Form Component page when it appears. However, the default settings are typically okay for most simple forms. The exception would be if you have an options field which requires you to include a list of the options. If you do not need to make any updates, scroll to the bottom of the page and click SAVE COMPONENT.

  7. Repeat this process as many times as necessary, until you've added all the fields you need on your form.

  8. Rearrange the ordering of the fields as necessary, using the cross hairs on the far left side of the table.

  9. Click SAVE.

  10. You can now view the full form as your end users would experience it, by navigating to the main form view.

Form results

Once form submissions start coming in, you will see the results on the Results tab of the form.

Form Emails

Once a form is submitted, an email will go out to the user confirming their form submission. In addition, an email will be sent to you or someone on your team notifying you of the form submission. All of the settings related to these form submission emails are managed on the web portal using the following steps:

  1. Login to the web portal as a manager or editor.

  2. Go to Admin > Content > Webforms.

  3. Click on the Components option.

  4. In the Admin menu, notice to the right side of the menu that a new option has appeared called Webforms. Hover over it—don't click on it—and a drop-down list will appear, as shown below:

    Form E-mails

    Tip

    If the drop-down doesn't appear, refresh your page and hover over Webforms again. The drop-down should appear now.

  5. From the list, click E-mails.

  6. Once on the E-mails page, you can add the email address of the person on your team who should be notified whenever new webform submissions come in.

  7. Once you click the ADD button to add the email address, you'll be sent to a page containing the various email-related fields. These fields include the email header info, the email template, and the included email values. The fields will initially display default settings. However, you can make updates to reflect how and what you want your form submission emails to say and include.

  8. To make an update to the email header details, start typing in the desired Custom field. The radio button will automatically change. If the update is text-related, such as with the email template, you can start with the template and click Browse available tokens for more options.

  9. Once the fields have been updated to your liking, click SAVE E-MAIL SETTINGS to save the changes.

Note

Creating custom forms requires technical proficiency. To learn more about forms, please see the article Creating Webforms with xTupleCommerce on xTupleUniversity. For help creating complex forms, please contact your xTuple support representative.