TOPIC:

dropmenu disabled item 2 weeks 3 days ago #275104

  • Topic Author
  • midimoinsdix
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 95
  • Thanks: 0
Hi,

Do you think if it's possible to disabled a item of DropMenu ?

0|name|value | disabled ???

Thank's

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

dropmenu disabled item 2 weeks 3 days ago #275116

  • tihana.krivic's Avatar
  • tihana.krivic
  • Online
  • Moderator
  • Moderator
  • Posts: 10539
  • Karma: 3
  • Thanks: 705
Hi,

basically yes.

E.g. with this code on change in Actionscript (go to this element->Advanced->Actionscript->check Custom->check Change->click on Create code framework, and between case 'change' and break; add:
JQuery("#ff_elem1247 option[value=\"2\"]").attr('disabled', true);
where #ff_elem1247 is ID of select list (find it with right click on browser->Inspect->and in Console find ID of select list), and 2 is value (replace it with your value of select list).

Regards,
Tihana

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

dropmenu disabled item 2 weeks 2 days ago #275124

  • Topic Author
  • midimoinsdix
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 95
  • Thanks: 0
Thank for your answer,

We can't do it directly in the declaration of the dropMenu?

For example :
0;name;value;disabled

and if I have to import a list of items dynamically to build my DropMenu, should I also write a Jquery Dynamically?

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

dropmenu disabled item 2 weeks 2 days ago #275125

  • tihana.krivic's Avatar
  • tihana.krivic
  • Online
  • Moderator
  • Moderator
  • Posts: 10539
  • Karma: 3
  • Thanks: 705
Hi,

We can't do it directly in the declaration of the dropMenu?

unfortunately, no :/

and if I have to import a list of items dynamically to build my DropMenu, should I also write a Jquery Dynamically?

hmm...if list is imported dynamically, then we need to find another way to do this (if this is possible).
I will check and let you know

Because I assume that it takes a lot of time to write it for each item, if it is populated dynamically, but I will let you know when I find useful information

Regards,
Tihana

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

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