You need to sign in to do that
Don't have an account?

REG: contact's First Name(with Salutation) in the VF page
Hi Dev,
I am creating a VFPage which creates a contact. I am using Standard controller and inputfield for that.
Now the Problem is I am not getting the salutation inside the FirstName. How to do it?
Example: FirstName : [ [\/]] [ ]
| |
Salutation FirstName
Regards,
shra1
I dont really understand your example but Im guessing that your problem is that your salutation field and first name field are being separated inside the page block into two different columns.
You need to wrap the two fields inside an apex:pageblocksectionitem component:
The pageblocksectionitem ensures that it's contents are displayed as one field.
The output label displays the label you want - you need this because the pageblocksectionitem removes all formatting so the inputfield's label will NOT be displayed.
A pageblocksectionitem can only contain two children so to I've used outputpanel to wrap the three further components that we require - the two fields separated by a non breaking space.
This should work!
Steven