• deepak_programmer
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

I have a requirement to limit the # of characters displayed in an outputfield.  If the field value is > 100 characters, the displayed text should be truncated.  As shown below, I tried to use 'left' to limit the characters to 100, but I recieve the following error:

 

"Error occured trying to load the template for preview: value for outputField is not a dynamic binding!. Please try editing your markup to correct the problem."

 

Can I accomplish this in VF without using a controller? 

 

<apex:outputField value="{left(!cx.match_criteria__r.searcher__r.account.Investment_Focus__c,100)}" />  

 

Message Edited by Brian12345 on 05-12-2009 01:34 PM
Message Edited by Brian12345 on 05-12-2009 01:35 PM