Hello
two little questions:
1. Is it possible to remove the "please select" from a select widget so that it just gives the options?
2. is it possible to put a select widget in the navigation pane?
kind regards
P
select widget
6 posts
• Page 1 of 1
select widgetHello
two little questions: 1. Is it possible to remove the "please select" from a select widget so that it just gives the options? 2. is it possible to put a select widget in the navigation pane? kind regards P
Re: select widget
You would have to modify the source to Xataface to do this. Refer to the file ./Dataface/FormTool/select.php, lines 17-18. I am not sure what all the repercussions would be without testing it. If you modify this file directly, it will affect all select widgets in your installation. You could try duplicating this file to roll your own separate select widget and then referencing which one you need. Or, if you have PHP coding skills, you could make it an optional parameter that could be configured on a per-field basis in fields.ini. If you do this, please consider sharing your results here.
This would probably also require some customization and creative coding skills.
Re: select widgetYou could also just set a default value for that field. The "please select..." option would then still be there, but it wouldn't be selected by default so most people wouldn't notice it.
Re: select widgetAlternatively you could use javascript to remove this option on page load.
Re: select widgetShannah, how do I set a default value for that field?
Re: select widget
It is specified in MySQL, along with the data type for that column.
6 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 18 guests |