You need to sign in to do that
Don't have an account?
Ashritha Reddy
making the fields as required
Can i make the fields as required through vf page if possible how can i make plese provide any simle example?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Try Somethinf like this:
Let me know if it helped you!
Thanks,
AG
All Answers
You can use the attribute required=true in any of your inputfield tag.
Regards,
Mahesh
Try Somethinf like this:
Let me know if it helped you!
Thanks,
AG
More information about the required attribute to know:
There is a very good article on all the tag in Visualforce Page:
required
BooleanA Boolean value that specifies whether this inputField is a required field. If set to true, the user must specify a value for this field. If not selected, this value defaults to false. Note that if this input field displays a custom object name its value can be set to nil and will not be required unless you set this attribute to true. The same does not apply to standard object names, which are always required regardless of this attribute.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_inputField.htm
Also go through the Component Reference document:
https://na2.salesforce.com/apexpages/apexcomponents.apexp
It will ask you to login into, you can use your DE account to login and access all the Tags and its attributes.
Please do let me know if it helps you.
Regards,
Mahesh