ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to: field rows

November 15, 2012 12:12pm

Subscribe [1]
  • #1 / Nov 15, 2012 12:12pm

    paolome

    75 posts

    Building a safecracker form, I need to have a field with many rows to write in.
    How can I do to avoid a single-line field?

    <label for="breve">Descrizione breve</label>
    
        <input type="extendedtext" name="breve" id="title" value="{breve}" size="50" rows="10" maxlength="100"><br>

    thank you

  • #2 / Nov 19, 2012 12:53pm

    Dan Decker

    7338 posts

    Hi paolome,

    Sure thing!

    This is done the same as any other HTML form, by using the textarea field-type in the channel and the textarea HTML element in your form.

    <label for="breve">Descrizione breve</label>
    
        <textarea name="breve" id="title" cols="50" rows="10">{breve}</textarea>

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases