none
In a lookup field selection box, how to have horizontal scroll bar in IE so users can see complete items? RRS feed

  • Question

  • Hi there

    In a lookup field selection box, how to have horizontal scroll bar in IE so users can see complete items?
    The scroll bar shows up fine on Chrome but not in IE or Firefox. 

    Can CSS help? What exactly?

    Thanks.



    • Edited by ran009 Friday, February 24, 2017 11:51 PM
    Thursday, February 9, 2017 11:12 PM

Answers

  • Hi,

    We can use jQuery to achieve it, add the code below into a content editor web part in the new/edit form page.

    <script src="//code.jquery.com/jquery-3.1.0.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function(){
    	var field=$("select[id$='_SelectCandidate']");
    	var style=field.attr("style");
    	field.attr("style","");
    	field.wrap("<div style='border:0;"+style+"'></div>");
    	field.attr("size",field.find("option").length);
    });
    </script>

    Best Regards,

    Dennis


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com


    Friday, February 10, 2017 2:29 AM
    Moderator