Welcome, Guest
  • Page:
  • 1

TOPIC: Read-only Textarea

Read-only Textarea 2 years, 1 month ago #10698

Hi, in my form I would like to display a text area with text in it for the user to read but not modify. I have tried placing the text in a section description, but the text is so long that it makes the form to high. I would like to put it in a text area in order to use its vertical scroll bar so the user can read all the text without making the form too high. At the moment there is no option to make a text area read only. Can this be added?
  • rubasurex
  • OFFLINE
  • Junior Boarder
  • Posts: 36
  • Karma: 0

Re: Read-only Textarea 2 years, 1 month ago #10725

Hi,

it is a bug that it is not added in the options by default but you can do a little workaround:

- go to form settings => advanced => more options => "Script" tab

- Click "custom" at initiliazation script

- Click "create code framework"

- Inside the generated code function (between opening { and closing }, put this

ff_getElementByName("name-of-textarea").readOnly = true;


Then it should be readonly at form startup.
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================

Re: Read-only Textarea 1 year, 6 months ago #14649

per meglio chiarire il codice deve essere inserito qui:

function ff_nome-form_init()
{ff_getElementByName("nome-textarea").readOnly = true;}
// ff_nome-form_init

// -------------- old code below --------------
  • vincenzo
  • OFFLINE
  • Fresh Boarder
  • Posts: 17
  • Karma: 0
Se puoi fare ciò che vuoi, non sempre puoi fare ciò che non sai.
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 2.71 seconds

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany