Hi Steve,
Is there a shortcut to add an input field to a select one, so that a user can add a new input if an item is not yet included inside the select list ?
Thank you
Jean
a select with an input
3 posts
• Page 1 of 1
a select with an inputHi Steve,
Is there a shortcut to add an input field to a select one, so that a user can add a new input if an item is not yet included inside the select list ? Thank you Jean
Hi Jean,
I don't have a "nice" solution for this widget at this time. I do have "a" solution though if you are using a valuelist that is drawn from the database (i.e. it uses __sql__). This is a snippet from the manual on editable select lists: \subsubsection{Editable Select Lists} If the valuelist that is used to define the options for a select list is dynamic (i.e. its values are pulled from the database), then a select list can be made editable using the widget:editvalues directive. If this is enabled, then the select list will contain an extra option at the end of the list labeled "Edit Values ...". Selecting this option will provide the user with a pop-up prompt to enter a new value for the select list. This is handy if you have a field where you want the user to select from existing options most of the time, but if their option is not listed you want them to be able to add their own option. An example with the eyeColor field to make it into an editable select list follows:
3 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 27 guests |