You need to sign in to do that
Don't have an account?
SalesRed
Equivalent of Substring Function in Visualforce pages
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!
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.
All Answers
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.
Thank you for your help!
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 ,
thanks in advance