function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RamyaSRamyaS 

Function IN VF similar to substring in java

Hi,

Is there a function any function in VF similar to TRIM, in VF which is used to trim a string to a specific length?

EX: {!Opportunity__r.Name} I want to display only the string if length 10 characters.

Can I use any FORMAT function

Thanks.
Drew1815Drew1815
I was able to get this to work:
Code:
<apex:page> 
    {!LEFT('abcdefghijklmnopqrstuvwxyz', 10)}
</apex:page>

 
So you should be able to replace my dummy text string with the binding variable to your Opportunity field.

Thanks,
Andrew