Back

Drupal Forms User Guide

Accessing and testing forms

Testing

View

This option leaves the form blank. Use this if you want to: 

  • see how easy it is to use the fields
  • test the form with specific data, for example to test logic
  • test the save function

Test

The Test screen shows your form with all the fields filled with random data. This saves you time filling in all the mandatory fields just so you can see the next page.

One thing to be careful when using this to populate forms is that it doesn't always respect any word count rules you might set.

Linking to a form

To share a form outside the CMS with a stakeholder, replace the 'cms' in the URL with 'www'.

Use this URL to link to the form from a web page.

Embedding a form

Instead of adding a link, a form can be added as a page component. The examples in this guide are forms with one or two fields, added as page components.

  1. Open page components in the page
  2. Click add / select component
  3. Under create component, select webform
  4. Add a label
  5. Select your form
  6. Save

Avoid doing this if the page is part of a guide, as the guide menu is fixed at the top and users will have to scroll a long way on every form page to see any questions.