Select field

More
10 years 10 months ago #50056 by chenz2
Select field was created by chenz2
I want my site editors to be able to select from a list of teachers in this dropdown. IF the teacher is not in this list, I want them to be able to add a new teacher by clicking a button to the right. Like this screenshot below.

[attachment=0:3cy5h6fi]<!-- ia0 -->Untitled-1.jpg<!-- ia0 -->[/attachment:3cy5h6fi]

Right now, I just have a text field (addteacher) below the select field (teacher) to type in a name manually. Then the select field dynamically updates using this sql query. I don't know if I have the right code though.
Code:
SELECT value AS value, value AS text FROM #__flexicontent_fields_item_relations WHERE field_id=16

Is this the right way? Or is there a better, shorter way to do same thing? Basically I want the data from field ADDTEACHER to show up in the field TEACHER as select options.
Attachments:

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

More
10 years 10 months ago #50063 by micker
Replied by micker on topic Select field
use text select field ! ;)

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.327 seconds
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
Save