TOPIC:

Preselect value in dropdown using plugin 1 month 2 days ago #282142

  • ScoutingAlphen's Avatar Topic Author
  • ScoutingAlphen
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 43
  • Thanks: 0
Hello,

Is it possible to preselect a value in a dropdown list using the plugin? Example: I have a form with a list with the name "subject". Now I integrate the form into an module/article and I want the subject to be a specific value from the list, like the second row ( in my cse "0;Ik wil vrijwilliger worden;Vrijwilliger"). Is this possible and if so how?
Met vriendelijke groet,

Jeroen Kluft
Redactie Scouting Alphen aan den Rijn
scoutingalphen.nl
Attachments:

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

Preselect value in dropdown using plugin 1 week 3 days ago #282414

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Administrator
  • Administrator
  • Super Users
  • Posts: 10544
  • Thanks: 859
Hi,

instead of a 0, use a 1 to pre-select as first option with one of the entries.
You can also use PHP and select these programmatically. For example based on entries in a database table.

Regards,
Markus

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

Preselect value in dropdown using plugin 1 week 3 days ago #282417

  • ScoutingAlphen's Avatar Topic Author
  • ScoutingAlphen
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 43
  • Thanks: 0
Hello Markus,

Thank you for the reply, but it's not what I meant. I know that by setting one line to 1 makes it preselect by default. However I would like it to be a dynamic preselect from within the plugin, so something like this:
{BreezingForms : Contact_voorzitter, 1, 0, &subject="Vrijwilliger"}
Where the additional information "subject=" tells the form which line of the pulldown it has to preselect. Is something like this possible?

With kind regards,
Jeroen
Met vriendelijke groet,

Jeroen Kluft
Redactie Scouting Alphen aan den Rijn
scoutingalphen.nl

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

  • Page:
  • 1
Time to create page: 0.048 seconds

Support Chat

Join our Discord chat and enter the Crosstec channels for live-support, chat forums and interact directly with the community!

After joining, please enter the Crosstec Area and use the #crosstec-support or #crosstec-general channels.

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

Subscribe to news and updates!

Special Offer

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!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!