Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8218367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:46:15+00:00 2026-06-07T12:46:15+00:00

I had this problem on my three sharepoint sites and i manage to resolve

  • 0

I had this problem on my three sharepoint sites and i manage to resolve this problem by modifying CSS code (cf http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010general/thread/64796605-bcbb-4a87-9d8d-9d609579577f/) on two of them.

I don’t know why this doesn’t work on my third one which has same updates, same CSS and same html code…
I tried several solutions such as adding indesign=”true”(this can’t be use because the lists got more than 75 columns). cf
http://www.codeproject.com/Articles/194254/Advanced-fixing-SharePoint-2010-large-lookup-dropd

The only solutions i found required javascript but i don’t really want to use it…

If someone have another solution to propose, i would really appreciate.

EDIT:
Thanks to moontear i found something quite great.
I replace the beginning of the script by :
$(document).ready(function () {

$('.ms-lookuptypeintextbox').each(function(){
    OverrideDropDownList($(this).attr('title'));
});

// Main Function
function OverrideDropDownList(columnName) {
...

By this way, i just have to include the script and don’t care about what columns got problems…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T12:46:16+00:00Added an answer on June 7, 2026 at 12:46 pm

    This script seems to be quite great to solve this problem…
    Thank you moontear for your comment
    The original script come from : http://sharepointegg.blogspot.de/2010/10/fixing-sharepoint-2010-lookup-drop-down.html

    $(document).ready(function () {
    
    $('.ms-lookuptypeintextbox').each(function(){
        OverrideDropDownList($(this).attr('title'));
    });
    
    // Main Function
    function OverrideDropDownList(columnName) {
    
    // Construct a drop down list object
    var lookupDDL = new DropDownList(columnName);
    
    // Do this only in complex mode...
    if (lookupDDL.Type == "C") {
    
    // Hide the text box and drop down arrow
    lookupDDL.Obj.css('display', 'none');
    lookupDDL.Obj.next("img").css('display', 'none');
    
    // Construct the simple drop down field with change trigger
    var tempDDLName = "tempDDLName_" + columnName;
    if (lookupDDL.Obj.parent().find("select[ID='" + tempDDLName + "']").length == 0) {
    lookupDDL.Obj.parent().append("<select name='" + tempDDLName + "' id='" + tempDDLName + "' title='" + tempDDLName + "'></select>");
    
    lookupDDL.Obj.parent().find("select[ID='" + tempDDLName + "']").bind("change", function () {
    updateOriginalField(columnName, tempDDLName);
    });
    }
    
    // Get all the options
    var splittedChoices = lookupDDL.Obj.attr('choices').split("|");
    
    // get selected value
    var hiddenVal = $('input[name=' + lookupDDL.Obj.attr("optHid") + ']').val();
    if (hiddenVal == "0") {
    hiddenVal = lookupDDL.Obj.attr("value")
    }
    
    // Replacing the drop down object with the simple drop down list
    lookupDDL = new DropDownList(tempDDLName);
    
    // Populate the drop down list
    for (var i = 0; i < splittedChoices.length; i++) {
    var optionVal = splittedChoices[i];
    i++;
    var optionId = splittedChoices[i];
    
    var selected = (optionId == hiddenVal) ? " selected='selected'" : "";
    lookupDDL.Obj.append("<option" + selected + " value='" + optionId + "'>" + optionVal + "</option>");
    }
    }
    }
    
    // method to update the original and hidden field.
    function updateOriginalField(child, temp) {
    var childSelect = new DropDownList(child);
    var tempSelect = new DropDownList(temp);
    
    // Set the text box
    childSelect.Obj.attr("value", tempSelect.Obj.find("option:selected").val());
    
    // Get Hidden ID
    var hiddenId = childSelect.Obj.attr("optHid");
    
    // Update the hidden variable
    $('input[name=' + hiddenId + ']').val(tempSelect.Obj.find("option:selected").val());
    }
    
    // just to construct a drop down box object. Idea token from SPServces
    function DropDownList(colName) {
    // Simple - when they are less than 20 items
    if ((this.Obj = $("select[Title='" + colName + "']")).html() != null) {
    this.Type = "S";
    // Compound - when they are more than 20 items
    } else if ((this.Obj = $("input[Title='" + colName + "']")).html() != null) {
    this.Type = "C";
    // Multi-select: This will find the multi-select column control on English and most other languages sites where the Title looks like 'Column Name possible values'
    } else if ((this.Obj = $("select[ID$='SelectCandidate'][Title^='" + colName + " ']")).html() != null) {
    this.Type = "M";
    // Multi-select: This will find the multi-select column control on a Russian site (and perhaps others) where the Title looks like '????????? ????????: Column Name'
    } else if ((this.Obj = $("select[ID$='SelectCandidate'][Title$=': " + colName + "']")).html() != null) {
    this.Type = "M";
    } else
    this.Type = null;
    } // End of function dropdownCtl
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently had a problem with three separate servers running the same code all
[Update] Unfortunately I never had an opportunity to solve this problem. However, there are
I had this problem before and can't for life of me remember how to
I had this problem some time ago and I gave up but lately it
I have had this problem crop up a few times and I can't figure
Has anyone had this problem? I deleted a column in the table editor and
I know I've had this problem before so I'm really frustrated. I've got the
I have had this problem w/ two seperate WYSWYG editors in my rails application
Has anyone had this problem? My projects tend to have some long XML files
I'm very confused and am hoping someone might have had this problem and be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.