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
sfdevelop011.3903242333401877E12sfdevelop011.3903242333401877E12 

Vfpage apex tag using<apex:outputlabel> (the output i need see once pls)

<apex:outputlabel value="Address:">
      <apex:outputtext value="{!user.city}  {!user.street} {!user.Country}">
     </apex:outputtext>
</apex:outputlabel>

TheO/P is: ex like Hyderabad yusufguda india

But my requirement is the O/P shud be like this:: Hyderabad
                                                                        yusufguda
                                                                        india
Like this.. Pls any one tell me the missing code. i know its simple.. thanks in advance
Himanshu ParasharHimanshu Parashar
<apex:outputlabel value="Address:">
    <apex:outputtext value="{!user.city}  {!user.street} {!user.Country}"/>
    <br/>
    <apex:outputtext value="{!user.street}"/>
   <br/>
   <apex:outputtext value="{!user.Country}"/>
    
</apex:outputlabel>
It should work for you.


Thanks,
Himanshu
Salesforce Certified Developer | Administrator | Service Cloud Consultant

P.S.  If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.
 
Himanshu ParasharHimanshu Parashar
This is correct code.
 
<apex:outputlabel value="Address:">
    <apex:outputtext value="{!user.city}"/>
    <br/>
    <apex:outputtext value="{!user.street}"/>
   <br/>
   <apex:outputtext value="{!user.Country}"/>
    
</apex:outputlabel>

 
sfdevelop011.3903242333401877E12sfdevelop011.3903242333401877E12
both Of u thank you verymuch....
One more doubt is >>> 
 how to insert a checkbox in vf page.
for example::
am creating a VF page on controller called User
 in User there are lot of Checkboxes are there
in that i want to insert anyof them into VF page
like:Knowledge User
      Allow Forecasting
     Call Center
     Offline User
these above are the check boxes i want insert all these in User VF page
 
Himanshu ParasharHimanshu Parashar
You can add those fields using following code.
 
<apex:inputCheckbox value="{!user.ForecastEnabled}"/><br/>
<apex:inputCheckbox value="{!user.UserPermissionsOfflineUser}"/>