TOPIC:

Text box read-only 5 months 3 weeks ago #256520

  • Topic Author
  • Niederhofer
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 100
  • Thanks: 0
Hello there,
a text field can be switched to read-only.
How about a text box? I am missing the checkbox for "read-only" there.

Kind regards
Andreas

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

Text box read-only 5 months 3 weeks ago #256526

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6916
  • Karma: 3
  • Thanks: 492
Hi,

please go to your form->Advanced->More options->Scripts->Initalization Script->check Custom and put:
function ff_nameofyourform_init()
{
     ff_getElementByName("nameofyourtextarea").readOnly=true;
} // ff_nameofyourform_init

Please replace:
-nameofyourform with name for your form (not title)
-nameofyourtextarea with name for your textarea (not title)

Regards,
Tihana

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

Text box read-only 5 months 3 weeks ago #256578

  • Topic Author
  • Niederhofer
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 100
  • Thanks: 0
Hej Tihana,
thanks for your answer! I tried this solution, but it is still possible to type something into this field. Maybe I have not been precise: It should be not possible to enter something into this field. With a normal text field, in read-only mode than there is this little "not allowed" traffic sign, when you go over this field - so you cant type...

Thanks and kind regards
Andreas

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

Text box read-only 5 months 3 weeks ago #256589

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6916
  • Karma: 3
  • Thanks: 492
Hi,

with this code is not possible to add something in the field.
Field is readonly.

I made a small example for you, where you can see this readonly textarea

File Attachment:

File Name: testA.zip
File Size:5 KB



Please make sure that you enter correct name for textarea and form in the code

If you need more help, please let me know

Regards,
Tihana
Attachments:

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

Text box read-only 5 months 3 weeks ago #256604

  • Topic Author
  • Niederhofer
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 100
  • Thanks: 0
Dearest Tihana,
your example works absolutely fine! I made the mistake, that I placed the code into the Initscript area in the advanced area of the text field box itself instead of the form.

Thanks for solution!
Kind regards
Andreas
Attachments:

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

Text box read-only 5 months 3 weeks ago #256605

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6916
  • Karma: 3
  • Thanks: 492
Hi,

super! I am glad I was able to help :)

Regards,
Tihana

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

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.048 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!