You need to sign in to do that
Don't have an account?
ifthikar ahmed
visual force basics
HI All,
below is my coding ..
<apex:page standardController="Account" >
<apex:pageBlock >
<apex:form >
<apex:inputField Value="{! Account.AccountNumber}" />
</apex:form>
</apex:pageBlock>
</apex:page>
in the output i am just geting the inputField alone but not its lable why ??
where in i refered some vidio ,where lable is also displayed just by using <apex:inputField Value="{! Account.AccountNumber}" />
below is my coding ..
<apex:page standardController="Account" >
<apex:pageBlock >
<apex:form >
<apex:inputField Value="{! Account.AccountNumber}" />
</apex:form>
</apex:pageBlock>
</apex:page>
in the output i am just geting the inputField alone but not its lable why ??
where in i refered some vidio ,where lable is also displayed just by using <apex:inputField Value="{! Account.AccountNumber}" />
You Should use as follow to get level of field.
Thanks
- I read your problem and implemented it in my Org and it is working fine.
- Please use the below code [Solved] : -
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha.
Please put your input field between <apex:pageBlockSection> tag.this will give you label name too.
Try the below link to learn more about page block section and let me know if it works for you-
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_pageBlockSection.htm
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi