I got a request to change the length of select dropdown list. Because the current length of dropdown list can only show part of sentence, not all, so someone may not understand what it is or which item should be choice.I looked the FormsPublisher document, it seemed not a option to change the length of select dropdown list. Does anyone have advices?Thanks,
Select dropdowns take length of the name of it longest option available, so you are saying that you longest name is not fitting in, do you have a character limit for this field?
Yes, my longest name is not fitting in dropdown list, and I don't have a character limit for this field.Is any possibility to change the length?
You can set it using JavaScript,document.getElementById('mySelect').style.width=100 + 'px';HTHThanks
Thank you lilleywhite.It was my mistake, actually it didn't change any thing.I guess that "document.getElementById('myselect').style.width=100 + 'px';" is only for HTML?I don't know why I still did not see any effect.
Yes that is the one for html form with a select box in it. Well you can implement it some way like thisIWDatacapture.getItem("myselect").style.width=100 + 'px';See if that works, when you said it worked what actually worked?Thanks
...how to change the length of dropdown list...
There are basically two supported mechanisms that you can use to style DC Forms.As already noted by rpoulin, you can customize almost all aspects of Teamsite Styling, DCT including.Get to User Interface Customization Guide, Chapter "Customizing GUI Appearance". Note that all changes of that nature are global.If I were you I would use another supported approach. "templating.cfg" File allows you tooverride DCT styling with your own (per type). The Tag is <viewoptions>, attribute cssurl.Get to Forms Publisher Developer’s Guide, look for "Using the viewoptions Element" and "Style Sheet Customizations" Paragraph.Alternatively, it is certainly possible to hack DCR Structure, get "raw" DOM Objects behind itand start modifying them through FormAPI. This is neither documented nor supported though, you'll be on your own