Problem with Select Field

More
13 years 6 months ago #11393 by jsanglier
I want to use a plugin with Flexicontent and have created a select field to do this.

I can get it to work fine, but there is a small problem.

What it saves into the database, rather than the "value" of the option, it stores the text of the option.

I have used this:

SELECT id AS value, unit_name AS text FROM jos_rentalot_plus_units ORDER by unit_name ASC

To get it to work, I have to reverse it, but that means on the actual dropdown I display the ID number rather than the name of the unit.

Where in flexicontent can I change it so it saves the value part of the select field?

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.257 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline