Welcome, Guest
  • Page:
  • 1

TOPIC: Read-only Textarea

Read-only Textarea 2 years, 5 months 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, 5 months 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, 10 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
  • Junior Boarder
  • Posts: 23
  • Karma: 0
Se puoi fare ciò che vuoi, non sempre puoi fare ciò che non sai.

Re: Read-only Textarea 1 month, 3 weeks ago #70675

Hi, I tried to add this workaround to a form that has two pages. The textarea is on Page 2, but the script seems to have disabled the Next button on Page 1. Given that the workaround to an admitted bug was posted 2 years and 3 months ago, how about including read-only textareas in your next maintenance update?

Thanks.
  • Qualicom
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0

Re: Read-only Textarea 1 month, 2 weeks ago #71423

Is there an update to this as i'm also trying to do the same thing with the text area.
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.48 seconds

Facebook Discount - 40% Off!

Fans of our Facebook page here are entitled to get a 1-year-subscription for the price of a 6-months!

Steps to take:

  • Become a fan on Facebook (Like) here
  • Purchase a 6-months-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of your like and we'll upgrade to the 1-year-subscription

Joomla!® Forms Discount - 40% Off!

Already purchased a forms extension from a different vendor but your requirements changed and now you need a forms extension that is capable of more than just the standards? We help you to keep the costs for a change under control: Get a 40% discount on our professional membership plan! -- meaning timely unlimited access to all current and future commercial extensions, breezingforms themes & apps and Joomla!® templates at crosstec.de, including 1 year of support -- without any website limitations -- Just prove that you previously purchased another forms extension for Joomla!® from a different vendor and you are qualified.

Steps to take:

  • Purchase a 1-year-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of the purchase for the other form vendor and we'll upgrade to the professional-subscription

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany

Imprint