TOPIC:

How to set a Select List value to 'selected' 3 weeks 1 day ago #257714

  • tribal6
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 7
  • Thanks: 1
Thank you very much, Tihana, that's very nice of you.

The installation has already worked, I will try to adjust the form field tomorrow.

Regards
Roger

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

How to set a Select List value to 'selected' 3 weeks 22 hours ago #257751

  • tribal6
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 7
  • Thanks: 1
I made it work on my site, thanks again.

But your example depends on a additional textfield.

I made an example of a form with just one select-field. And as a 'give something back' I like to share this example, hopefully correct exported.

If in the url is a parameter 'subject' and the parameters-value matches a value from the select-list, it will be dynamic selected. The parameter is case-sensitive and in the url spaces should replaced with underline, like this:

mysite.com/myform?subject=Software_Entwicklung


Cheers
Roger
Attachments:

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

Last edit: Post by tribal6.

How to set a Select List value to 'selected' 3 weeks 20 hours ago #257760

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

please try this in select list->Advanced->Actionscript:
    function ff_subject_init(element, condition)
    {
        switch (condition) {
            case 'pageentry':
                var mySelect = element.value;
                var value = element.value;

                for (var i, j = 0; i = mySelect.options[j]; j++) {
                    if (i.value == value) {
                        mySelect.selectedIndex = j;
                        break;
                    }
                }
                break;
            default:
                ;
        } // switch
    } // ff_subject_init

Hope this helps

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

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

How to set a Select List value to 'selected' 2 weeks 6 days ago #257879

  • tribal6
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 7
  • Thanks: 1
Hi Tihana
As I said, I have allready made a select-list that works for me.

So again, thank you for your support.

Regards
Roger

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

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