Answers.Body: <p>You could try {'[Referral_Details.Further_Details]'|truncate} (will limit to default 80 characters) or {'[Referral_Details.Further_Details]'|truncate:30} to set the number of characters.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-06T14:44:11.793Z
Answers.Text: That method worked. But then made some entries display blank.
  
  Can't work out what's causing that to happen. Text in the activity record in Civi seems fine- no obvious formatting.
Answers.UserDisplayName: Craig Almond
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-06T14:50:40.567Z
Answers.Text: Removed "truncate" from rewrite settings and entries affected are still showing as blank
Answers.UserDisplayName: Craig Almond
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-06T12:11:17.397Z
Answers.LastActivityDate: 2023-04-06T12:11:17.397Z
Answers.UserDisplayName: RebeccaTregenna
Body: <p>I'm building lists of incoming enquiries/referrals for our services.</p>
  <p>Info comes in from a webform, and includes a text field to capture details of reasons for referral/ contact need.</p>
  <p>Some of these statements of need can be minor essays, and makes the incoming referral list difficult to use.</p>
  <p>Is there a way to truncate the amount of text that appears in the table listing? Say max number of words/ characters?</p>
  <p><a href="https://i.sstatic.net/KfXSl.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/KfXSl.png" alt="enter image description here" /></a></p>
  
Tags: <searchkit>
Title: Truncating text fields in searchkit
ThreadText: # Truncating text fields in searchkit
  
  (Asked by: username_0 on 2023-04-06)
  
  I'm building lists of incoming enquiries/referrals for our services.
  
  Info comes in from a webform, and includes a text field to capture details of reasons for referral/ contact need.
  
  Some of these statements of need can be minor essays, and makes the incoming referral list difficult to use.
  
  Is there a way to truncate the amount of text that appears in the table listing? Say max number of words/ characters?
  
  [![enter image description here](https://i.sstatic.net/KfXSl.png)](https://i.sstatic.net/KfXSl.png)
  
  **Tags:** searchkit
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-04-06. Score: 3 | Accepted answer
  
  You could try {'[Referral\_Details.Further\_Details]'|truncate} (will limit to default 80 characters) or {'[Referral\_Details.Further\_Details]'|truncate:30} to set the number of characters.
  
  > **Comments:**
  > **username_0**: That method worked. But then made some entries display blank.  Can't work out what's causing that to happen. Text in the activity record in Civi seems fine- no obvious formatting.  
  > **username_0**: Removed "truncate" from rewrite settings and entries affected are still showing as blank  
  
  ---
  
  