TOPIC:

Select-Liste verknüpfen 3 years 11 months ago #207594

  • Topic Author
  • deini
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 34
  • Thanks: 0
Ich möchte in meinem Forumlar drei Select-Listen miteinander verknüpften.

Die Elemente "Liste1, Liste2 und Liste3 sollen verknüft werden

Liste1 enthält einen DRuckerhersteller (Canon, HP, Epson, Kyosera ....)

Liste2 enthält die Serien dazu: Also z.B. (Pixma IP, Pixma Pro ....)
Diese Serien sind jedoch abhängig von den DRuckerherstellern (Liste1)

Wählt ein Kunde in Liste1 den Hersteller "Canon" sollen ihm die Serien von Canon angezeigt werden.
Wählt er hier "HP", sollen ihm die Serien von HP angezeigt werden

Hier gibt es dazu ein ähnliches Beispiel
www.tintenalarm.de/druckerpatronen-canon-patronen-c-42004.html

Wie kann ich die Verknüpfung herstellen? Gibt es über actionscript eine Lösung?
Attachments:

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

Select-Liste verknüpfen 3 years 11 months ago #207599

  • marko.bosnjak
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 2222
  • Karma: 44
  • Thanks: 279
Hello,

you can use Visibility rules to trigger a select list depending on a chosen value.
Please take a look on the following article: crosstec.org/de/support/online-dokumenta...ngig-abschalten.html

Let me know if you need any help with that.

Regards,
Marko
======================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
======================================
Need to renew Pro Support?
Buy Here!
======================================
Satisfied?
Consider a Membership!
======================================
Follow us on Facebook!

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

Select-Liste verknüpfen 3 years 11 months ago #207609

  • marko.bosnjak
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 2222
  • Karma: 44
  • Thanks: 279
Hello again,

or you can use this solution.
This script will automatically populate the second select list based on a selected value from the first select list.
Here's the example:
I've created 2 select lists named "liste1" and "liste2".
The "liste1" element has following values implemented:
1;Please Select;none
0;Canon;canon
0;HP;hp
0;Epson;epson
The "liste2" element has only "0" set as value, nothing else.
I went back to "liste1" element > Advanced tab > Actionscript > Type > Custom > Actions > Change and used this code in the framework:
function ff_liste1_action(element, action)
{
    var liste2 = ff_getElementByName('liste2');

    var canonArray = new Array(
        'Canon1 ', 'Canon 2', 'Canon 3', 'Other'
    );
    var hpArray = new Array(
        'HP 1', 'HP 2', 'HP 3', 'Other'
    );
    var epsonArray = new Array(
        'Epson 1', 'Epson 2', 'Epson 3', 'Other'
    );
    if (element.value == 'none') {
        // drop cities
        while (liste2.options.length > 0)
            liste2.options[liste2.options.length-1] = null;
    } else {
        // get the matching array
        var selectedArray = eval(element.value+'Array');

        // drop supernumerous option
        while (selectedArray.length < liste2.options.length-1)
            liste2.options[liste2.options.length-1] = null;

        // add the new options
        liste2.options[0] = new Option('Please Select', 'none', true, true);
        for (var i=0; i < selectedArray.length; i++)
            liste2.options[i+1] =
                new Option(selectedArray[i], selectedArray[i]);
    }
}
The values of the second list are set in arrays "canonArray", "hpArray" and "epsonArray". You can add new values by using single quotes inside those arrays.

I will attach you the example. Install it and test it out.
Let me know if you need anything else.

Regards,
Marko
======================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
======================================
Need to renew Pro Support?
Buy Here!
======================================
Satisfied?
Consider a Membership!
======================================
Follow us on Facebook!
Attachments:
The following user(s) said Thank You: deini

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

Last edit: Post by marko.bosnjak.

Select-Liste verknüpfen 3 years 11 months ago #207613

  • Topic Author
  • deini
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 34
  • Thanks: 0
Danke! Werde ich in ruhe testen

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

Select-Liste verknüpfen 3 years 11 months ago #207615

  • marko.bosnjak
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 2222
  • Karma: 44
  • Thanks: 279
Sure,

let me know if you need any modification.

Regards,
Marko
======================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
======================================
Need to renew Pro Support?
Buy Here!
======================================
Satisfied?
Consider a Membership!
======================================
Follow us on Facebook!

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

Select-Liste verknüpfen 3 years 11 months ago #207817

  • Topic Author
  • deini
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 34
  • Thanks: 0
Danke! Das hat ganz toll geklappt!

Vielen vielen Dank für den tollen Support

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

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