Skip to main content
Participating Frequently
December 19, 2017
Question

Multiline input

  • December 19, 2017
  • 1 reply
  • 412 views

Hi

I have found a form online which work great!

Now I want to add a new box to the form which allows for a message, so i want the box to be bigger, multiple lines rather than the 1 line I have at the moment.

Currently I have the following

at the top of the page:

    <cfparam

        name="FORM.email"

        type="string"

        default=""

        />

In the form:

<div class="control-group form-group">

     <div class="field-text">

       <label for="email">

       Email:<br><br>

       <input

            type="text"

            name="email"

           id="email"

            value="#FORM.email#"

            />

       </label>

       </div>

  </div>

I would like to have a new one called message.

Hope someone can help

Mark

This topic has been closed for replies.

1 reply

WolfShade
Legend
December 19, 2017

That is simple HTML.  You want a textarea.

<cfparam name="form.message" type="string" default="" />

...

<textarea name="message" id="message">#form.message#</textarea>

HTH,

^ _ ^