Adding textarea components

We need to gather some information from speakers regarding the presentation they plan to deliver at our conference. Organizers have specified that the presentation title may not be longer than fifty characters and is a required field. Organizers also need a brief synopsis of the content of the presentations for inclusion in marketing material.

How to do it...

  1. Add a new mandatory textfield component named Presentation title.
  2. On the settings page, set the Maxlength property to 50 and save the component.
  3. Add a new mandatory textarea component named Synopsis.
  4. In the Description text area on the settings page for the textarea, we enter the following descriptive text before clciking Save component:

Please provide a clear and concise summary of the content of your presentation and save the component.

How it works...

These two new fields on our form enable the registering speakers to name their presentations and give us a brief summary of the content. The Maxlength setting on the Presentation title field will prevent users from submitting a title of more than fifty characters. This is achieved by the user's browser limiting the number of characters that can be typed within the textfield.

There's more...

The textarea component type creates a rectangular box that accepts free-format input. While it is similar to a textfield in many respects and has many of the same configuration setting options, it differs from the textfield. Textarea makes more than one line of text possible to the end user.

An additional setting we have for this component, which is not present for a textfield, is the Resizable option. When this box is checked the user will be able to drag the bottom right-hand corner of the textarea to change its on-screen size.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset