Expand multilookup column

Olga Loseva -

Add following script to ES2013Custom.js (recommended approach - hides specified field - JobRoles -at all forms)

ExecuteOrDelayUntilScriptLoaded(function () {
var field = new Igotta.StandartListFormsUtility.SPFieldLookupMulti('JobRoles');
var fieldControl = field.getControl();
$(fieldControl).find('select[id$=SelectCandidate]').css('width','300px');
$(fieldControl).find('select[id$=SelectResult]').css('width','300px');
}, "sp.js");

 

Add following script to EditForm.aspx and NewForm.aspx (not recommended approach -make sure jquery.SPServices-2013.01.min.js and jquery-1.7.1.min.js exist in Layouts folder at the serevr)

Use column display name in script instead of Departments and Companies in this example

  

<script type="text/javascript" src="/_layouts/ES2010_Scripts/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/_layouts/ES2010_Scripts/jquery.SPServices-2013.01.min.js"></script>
<script type="text/javascript" id="SetMultiSelectWidth">

$(document).ready(function() {

 $().SPServices.SPSetMultiSelectSizes({
    multiSelectColumn: "Departments",
    minWidth: 300  
  });

 $().SPServices.SPSetMultiSelectSizes({
    multiSelectColumn: "Companies",
    minWidth: 300  
  });
});
</script>

 

Have more questions? Submit a request

Comments

Powered by Zendesk