Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am using SharePoint 2013 and I have a custom contentype inherited from task. Because there are too many fields, by default there is a Show More option to show all the fields.

Is there a way to show all fields by default and get rid of the Show More option?

share|improve this question

2 Answers 2

up vote 7 down vote accepted

Tasks new and edit forms, use JavaScript code that embed inside these form to show unrequired controls.

When click the “Show more” button, this will fire rlfiShowMore JavaScript function. Then if you want do disable this functionality, you can call this function after page loaded:

 <script>
    (function () {
        _spBodyOnLoadFunctionNames.push("rlfiShowMore");
    })();
</script>
share|improve this answer

I prefer other methods to the JavaScript workaround to really solve the problem: 1. You can change the list form assigned to the local Task content type, for example via PowerShell:

$web = Get-SPWeb http://YourSharePointSite 
$list = $web.Lists["Tasks"] 
$ct = $list.ContentTypes[0] 
$ct.DisplayFormTemplateName = "ListForm" 
$ct.NewFormTemplateName = "ListForm" 
$ct.EditFormTemplateName = "ListForm" 
$ct.Update()
  1. You can set the list form assigned to the ListFormWebPart via SharePoint Designer
  2. Create your own control template and add the ShowExpanded="true" attribute to the TaskListFieldIterator control
  3. Pass the Expanded=1 in the request query string like NewForm.aspx?Expanded=1
  4. Change the default column order of the local Task content type

All of these have the effect of displaying all the fields without the "Show More" button. You can read more about these methods here: http://pholpar.wordpress.com/2014/11/01/no-more-show-more-in-tasks-lists/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.