Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Visualforce Development
- :
- Equivalent of Substring Function in Visualforce pa...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Equivalent of Substring Function in Visualforc e pages
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-15-2012 09:27 AM
Hello,
In Apex there is the substring function. I'm wondering, in Visualforce is there an equivalent.
E.G. if I have a string 'testme:helloVal'. I want to get the value of the string from the colon ";" to the end of the string.
How can do this within a Visualforce page (not in a controller).
I know there are functions such as "Right", "LEN" etc that formula's use (e.g. with a workflow rule) and that some of these can be applied to visualforce, but I wasn't sure how I could make the above requirement work.
Any tips welcomed.
Thanks for your help!
Solved! Go to Solution.
Re: Equivalent of Substring Function in Visualforc e pages
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-16-2012 12:49 AM
See if this helps:
{!RIGHT('testme:helloVal',(FIND(':', 'testme:helloVal') + 1))}
Here, first we find the index number of ':', and then from Right we fetch the text based on that.
Kudos a post if it helps, mark it as solution if it solves.
http://exploretheforce.blogspot.in
Re: Equivalent of Substring Function in Visualforc e pages
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-16-2012 01:54 AM
Thank you for your help!
Re: Equivalent of Substring Function in Visualforc e pages
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-24-2013 10:15 PM
I want to split a name that is selected from dropdown list box and make to create LEAD first name and Last name , how to do that so ??
eg : "Jonh ken" is the name ,
- i want to split it like John for the first name and
- Ken for the second name ,
- Is it possible to use substring to do this , pls help
thanks in advance

