TOPIC:

Turn the field read only by condition 2 months 2 days ago #250751

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

this works for me.
Here is an example:

File Attachment:

File Name: example1311.zip
File Size:6 KB


Regards,
Tihana
Attachments:

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

Turn the field read only by condition 2 months 2 days ago #250761

  • Topic Author
  • Luisserafim
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 152
  • Thanks: 0
how can i send a private message?

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

Turn the field read only by condition 2 months 2 days ago #250762

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

you can send to: tk@evolutio-it.com

Regards,
Tihana

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

Turn the field read only by condition 2 months 2 days ago #250769

  • Topic Author
  • Luisserafim
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 152
  • Thanks: 0
Hi Tihana!

But the field 2 is a list too.

Tx in advance

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

Turn the field read only by condition 2 months 2 days ago #250770

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

got it!
function ff_room_action(element, action)
{
    switch (action) {
        case 'change':
        
        if( element.value == 'on') {
          ff_getElementByName('numberofrooms').value = 1;
          jQuery('#ff_elem22803').prop("disabled", true); 
        }
        else {
          ff_getElementByName('numberofrooms').value = "";
        jQuery('#ff_elem22803').prop("disabled", false); 
          
        }
            break;
        default:;
    } // switch
} // ff_room_action

Please replace #ff_elem22803 with ID of your second list (right click to your browser->Inspect and find ID for this select list)

Regards,
Tihana

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

Turn the field read only by condition 2 months 2 days ago #250772

  • Topic Author
  • Luisserafim
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 152
  • Thanks: 0
Sorry Tihana. It's not working.

Best regards

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!