TOPIC:

Turn the field read only by condition 3 months 3 weeks ago #250773

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

I have your form and for me it works.
I will send you this on mail

Regards,
Tihana
The following user(s) said Thank You: Luisserafim

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

Last edit: Post by tihana.krivic.

Turn the field read only by condition 3 months 3 weeks ago #250774

  • Topic Author
  • Luisserafim
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 160
  • Thanks: 0
Hi Tihana!

Yes! It Works! Tx so much :)

the boxes are confusing me because they are close to the wrong items

Actions: Click Blur Change Focus Select

It was working all the time but i choose wrong , sorry me, my bad.

Thanx :)

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

Turn the field read only by condition 3 months 3 weeks ago #250775

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

super! I am glad I have helped :)

I will rest a bit so I will switch to your other requests :)

Regards,
Tihana
The following user(s) said Thank You: Luisserafim

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

Turn the field read only by condition 2 months 2 weeks ago #252044

  • trucks79
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 86
  • Thanks: 0
can youhelp me? its not working for me..

i have a textfield i want to make read only and have done whats mentioned but it still allows users to type in the box?

here is what i used

function ff_bfQuickMode238177_action(element, action)
{
switch (action) {
case 'change':
break;
default:;
} // switch
} // ff_bfQuickMode238177_action
if ( element.value == "on") {

ff_getElementByName('bfQuickMode238177').readOnly = true;
}
else {
ff_getElementByName('bfQuickMode238177').readOnly = false;
}

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

Turn the field read only by condition 2 months 2 weeks ago #252046

  • Eddy.vh's Avatar
  • Eddy.vh
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 594
  • Karma: 4
  • Thanks: 99
Hello.

No, you have not done as mentioned!

Your condition is out of function, it can't work!

You must have a checkbox with options :
0;On;on
0;Off;off

Place your condition in the function like this.
function ff_nameOfCheckbox_action(element, action)
{
    switch (action) {
    case 'change':

        if ( element.value == "on") {

            ff_getElementByName('nameOfTextElement').readOnly = true;
        }
        else {
            ff_getElementByName('nameOfTextElement').readOnly = false;
        } 
    break;
    default:;
    } // switch
} // ff_nameOfCheckbox_action

Replace nameOfCheckbox with the real name (not title) of the Checkbox
Replace nameOfTextElement with the real name (not title) of the Text Field.

Regards,
Eddy

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

Turn the field read only by condition 2 months 2 weeks ago #252048

  • trucks79
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 86
  • Thanks: 0
sorry, i am not wantiong it for textbox.

i am wanting to use it for textarea element? so that its not editable

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

Time to create page: 0.050 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!