TOPIC:

Read-only Textarea 12 years 9 months ago #10698

  • Topic Author
  • rubasurex
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 35
  • Thanks: 0
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?

Please Log in or Create an account to join the conversation.

Re: Read-only Textarea 12 years 9 months ago #10725

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10062
  • Karma: 167
  • Thanks: 809
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.

Please Log in or Create an account to join the conversation.

Re: Read-only Textarea 12 years 2 months ago #14649

  • vincenzo's Avatar
  • vincenzo
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 22
  • Thanks: 0
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
Se puoi fare ciò che vuoi, non sempre puoi fare ciò che non sai.

Please Log in or Create an account to join the conversation.

Re: Read-only Textarea 10 years 5 months ago #70675

  • Qualicom
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 4
  • Thanks: 0
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.

Please Log in or Create an account to join the conversation.

Re: Read-only Textarea 10 years 5 months ago #71423

  • WillPatterson
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 10
  • Thanks: 0
Is there an update to this as i'm also trying to do the same thing with the text area.

Please Log in or Create an account to join the conversation.

Re: Read-only Textarea 9 years 2 days ago #100297

  • faramade
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 9
  • Thanks: 0
I am also in need of this text area workaround. Can you please make it available so we can be avoiding the workaround?

Please Log in or Create an account to join the conversation.

Moderators: ForumSupport
Time to create page: 0.052 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!