You need to sign in to do that
Don't have an account?
Ab
Displaying a text field in two lines
Hello,
I have a vf code like below
I want to disply first 8 characters on one line and the rest characters on other line, like below
How can i achieve it with minimal code.
thanks for suggestions
I have a vf code like below
<apex:outputText value="{!caseObj.Asset.SerialNumber}"/>Serial number is a standard field Text(80)
I want to disply first 8 characters on one line and the rest characters on other line, like below
A0123456 789105SDFDS
How can i achieve it with minimal code.
thanks for suggestions
Here you go with the VF page code to meet your goal of showing Serial Number in two lines, first 8 character on line 1 and remaining on line 2.
I Hope that will solve your issue.
Best Regards
799 The Coder
All Answers
1. Create 2 formula fields and show them on the page.
2. Create controller to fetch the data via apex and split it into 2 using 2 variables exposed and linked on the page.
Hello Sumeet,
Thank you for reply.
I cannot create new formula field.
Is it possible to realize my usecase directly by manipulating in VF only without using controller
Here you go with the VF page code to meet your goal of showing Serial Number in two lines, first 8 character on line 1 and remaining on line 2.
I Hope that will solve your issue.
Best Regards
799 The Coder