Make a value pre-selected with dynamic dropdown

How to pre-select a value in a dynamic dropdown.

Overview

The issue occurs when a dynamic dropdown does not automatically select a value passed from a previous page.
Pass the select name and the desired value as a parameter in the URL to pre-select the option.

Answered
Cr Creon 21 Oct, 2024

Hi there,

I have a question concerning a dynamic dropdown. The form is called by another page of my website and then a dynamic dropdown lists all seminars that are stored in one table. That works fine, but I would like to make the id of the seminar that is passed on by the previous page automatically selected and I can't figure out how this could work.So let's say I have a page with a link to the form with a structure like this: a href=myform?id=1 , how can I, in the form, make the seminar with the id=1 automatically preselected?Thanks in advance for your assistance and best regards

Marc

Max_admin Max_admin 21 Oct, 2024
Answer

Hi Marc

you should pass the select name with the value to be preselected: &select_name=1

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.