How do I change the default in a LISE dropdown in admin

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
blackrain
Forum Members
Forum Members
Posts: 98
Joined: Wed Feb 20, 2008 4:33 pm

How do I change the default in a LISE dropdown in admin

Post by blackrain »

I am trying to find out how to stop a dropdown in a LISE module from auto populating.

I am calling one LISE module into another as an 'instance Item'
The dropdown populates correctly and the data is also displayed correctly on the site.

My issue comes when the admin user adds a new item and the saves it, the dropdown already has a value and save the first by default, even if the admin user does not wish to select anything.

I would like to have something like 'Please select' by default in the dropdown if possible
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1922
Joined: Mon Jan 29, 2007 4:47 pm

Re: How do I change the default in a LISE dropdown in admin

Post by Jo Morg »

Currently that is not possible, but I may add it in a future release.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
blackrain
Forum Members
Forum Members
Posts: 98
Joined: Wed Feb 20, 2008 4:33 pm

Re: How do I change the default in a LISE dropdown in admin

Post by blackrain »

I have figured out a work around that will do for now. by adding a list item to the instance I am pulling into the dropdown and naming it 'select one' and making it the first item in the list, it will be the selected item on the dropdown in the LISE Instance Item fielddef.

to stop the item showing on a summary page I have added the 'start=1' attribute to ignore the first item. It works but may change the dropdown to a radio button to see if that does the required function better.

Thanks


Mark
Post Reply

Return to “Modules/Add-Ons”