Answers.Body: <p>Try increase $_maxFields in:
  CRM/Event/Form/Task/Batch.php</p>
  
  <blockquote>
    <p>/**    * Maximum profile fields that will be displayed.    */<br>
    protected $_maxFields = 9;</p>
  </blockquote>
  
  <p>This would be a core hack though! To do this properly -> copy Batch.php -> into a custom_php directory. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-09T05:30:54.843Z
Answers.Text: Perfect! Adding this an override php file has worked exactly. 
  
  Is there any reason the default is set to 9 fields? This seems rather small to me, and so I wonder if there are performance or reliability issues that one should know about if setting it to a number like 40. - apart from the obvious multiplication of variables - 100 rows of 40 fields is 4000 variables!
Answers.UserDisplayName: Andyg8
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-09T12:09:03.947Z
Answers.Text: Yes 4000 is a lot! The =9 is conservative; =40 is a lot! You may have to make that 2 batch edit profiles (updating 20 each); and/or update fewer contacts per batch (eg 50 instead of 100); You'll find out quickly if there are performance issues; adjust accordingly!
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-09T12:22:04.317Z
Answers.Text: @Andyg8: please don't forget to accept the answer - so stackexhange will know this one is dealt with!
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-20T15:13:09.827Z
Answers.Text: See this pending improvement [CRM-20921
  Move hard-coded CONST limits to settings](https://issues.civicrm.org/jira/browse/CRM-20921)
Answers.UserDisplayName: Francesc Bassas i Bullich
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-08T19:19:00.680Z
Answers.LastActivityDate: 2016-05-08T19:19:00.680Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>I'd be grateful if anyone knows the answer to this:</p>
  
  <p>I need to make a variety of batch update profiles that allow me to edit details of up to 40 custom participant fields on one screen. The batch update by profile is perfect for this.</p>
  
  <p>However, while I can make these profiles exactly as I want them, when I use them for 'Batch update participants by profile' only the first 9 fields are shown on the batch update screen. I've tried this with a variety of different profiles, with different custom fields from different custom field sets and get the same result - only the first 9 fields show. This is also the case regardless of whether I am showing 4 or 22 rows. (My 2 test scenarios).</p>
  
  <p>Is there a way to change this from 9 to 40 columns?</p>
  
  <p>I'm on Civi 4.6.12, Drupal 7.43. We've long ago changed our php input variable limit to 4000 because we have many many blocks in our site, so it can't be this...</p>
  
  <p>Thanks!</p>
  
Tags: <civievent><profile><search><batches>
Title: Batch update participants by profile - show more than 9 fields
ThreadText: # Batch update participants by profile - show more than 9 fields
  
  (Asked by: username_0 on 2016-05-08)
  
  I'd be grateful if anyone knows the answer to this:
  
  I need to make a variety of batch update profiles that allow me to edit details of up to 40 custom participant fields on one screen. The batch update by profile is perfect for this.
  
  However, while I can make these profiles exactly as I want them, when I use them for 'Batch update participants by profile' only the first 9 fields are shown on the batch update screen. I've tried this with a variety of different profiles, with different custom fields from different custom field sets and get the same result - only the first 9 fields show. This is also the case regardless of whether I am showing 4 or 22 rows. (My 2 test scenarios).
  
  Is there a way to change this from 9 to 40 columns?
  
  I'm on Civi 4.6.12, Drupal 7.43. We've long ago changed our php input variable limit to 4000 because we have many many blocks in our site, so it can't be this...
  
  Thanks!
  
  **Tags:** civievent, profile, search, batches
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-05-08. Score: 4 | Accepted answer
  
  Try increase $\_maxFields in:
  CRM/Event/Form/Task/Batch.php
  
  > /\*\* \* Maximum profile fields that will be displayed. \*/  
  > protected $\_maxFields = 9;
  
  This would be a core hack though! To do this properly -> copy Batch.php -> into a custom\_php directory.
  
  > **Comments:**
  > **username_0**: Perfect! Adding this an override php file has worked exactly.   Is there any reason the default is set to 9 fields? This seems rather small to me, and so I wonder if there are performance or reliability issues that one should know about if setting it to a number like 40. - apart from the obvious multiplication of variables - 100 rows of 40 fields is 4000 variables!  
  > **username_1**: Yes 4000 is a lot! The =9 is conservative; =40 is a lot! You may have to make that 2 batch edit profiles (updating 20 each); and/or update fewer contacts per batch (eg 50 instead of 100); You'll find out quickly if there are performance issues; adjust accordingly!  
  > **username_1**: @username_0: please don't forget to accept the answer - so stackexhange will know this one is dealt with!  
  > **username_2**: See this pending improvement [CRM-20921 Move hard-coded CONST limits to settings](https://issues.civicrm.org/jira/browse/CRM-20921)  
  
  ---
  
  