How to create custom fields in salesforce

Field:
          Fields is nothing but columns in table. It is used to store the data depending up on the field data type. Fields stores the data depending on the data type of the field. Now we will see the how to create different type of field.
1. Log in your Salesforce account using the user name and password.
2. Last post we seen how to create object. select Setup-->app setup-->Create-->Object. Here you can find all custom objects.Then Select an object to create a field.

Salesforce_custom_field

3.  Then look on Custom fields and relationships section. Then click on New button.

New_custom_field

4. Then you can find the all the data type, Select the data type based on the type of information do you want to store.
 

Data Type
Description
Auto Number
A system-generated sequence number that uses a display format you define. The number is automatically incremented for each new record.
Formula
A read-only field that derives its value from a formula expression you define. The formula field is updated when any of the source fields change.
Roll-Up Summary
A read-only field that displays the sum, minimum, or maximum value of a field in a related list or the record count of all records listed in a related list.
Lookup Relationship
Creates a relationship that links this object to another object. The relationship field allows users to click on a lookup icon to select a value from a popup list. The other object is the source of the values in the list.
Master-Detail Relationship
Creates a special type of parent-child relationship between this object (the child, or "detail") and another object (the parent, or "master") where:
  • The relationship field is required on all detail records.
  • The ownership and sharing of a detail record are determined by the master record.
  • When a user deletes the master record, all detail records are deleted.
  • You can create rollup summary fields on the master record to summarize the detail records.
The relationship field allows users to click on a lookup icon to select a value from a popup list. The master object is the source of the values in the list.
Checkbox
Allows users to select a True (checked) or False (unchecked) value.
Currency
Allows users to enter a dollar or other currency amount and automatically formats the field as a currency amount. This can be useful if you export data to Excel or another spreadsheet.
Date
Allows users to enter a date or pick a date from a popup calendar.
Date/Time
Allows users to enter a date and time, or pick a date from a popup calendar. When users click a date in the popup, that date and the current time are entered into the Date/Time field.
Email
Allows users to enter an email address, which is validated to ensure proper format. If this field is specified for a contact or lead, users can choose the address when clicking Send an Email. Note that custom email addresses cannot be used for mass emails.
Geolocation
(Beta) Allows users to define locations.
Number
Allows users to enter any number. Leading zeros are removed.
Percent
Allows users to enter a percentage number, for example, '10' and automatically adds the percent sign to the number.
Phone
Allows users to enter any phone number. Automatically formats it as a phone number.
Picklist
Allows users to select a value from a list you define.
Picklist (Multi-Select)
Allows users to select multiple values from a list you define.
Text
Allows users to enter any combination of letters and numbers.
Text Area
Allows users to enter up to 255 characters on separate lines.
Text Area (Long)
Allows users to enter up to 32,768 characters on separate lines.
Text Area (Rich)
Allows users to enter formatted text, add images and links. Up to 32,768 characters on separate lines.
Text (Encrypted)
Allows users to enter any combination of letters and numbers and store them in encrypted form.
URL
Allows users to enter any valid website address. When users click on the field, the URL will open in a separate browser window.


5. Select The Data type and then Click on next button.

Custom_field_data_types

6. Here i'm selecting Text data type.

Custom_field_details

7. Enter the details like this,
Field Label: It's your field display Name.
Length: Length of the field,means how many characters can accepts.
Field Name: The field name is used whenever referencing the field via the api.
Description: This is optional field,you can enter any description.
Help Text: This text displays on detail and edit pages when users hover over the Info icon next to this field.
                    it's use full to what data user enters.
Required: This field is required field every time save the record.
Unique: It's doesn't accepts duplicate values.
External ID: When importing Records to object you can use external IDs to prevent duplicate records                          from being created as a result of the import operation.
Default Value: We can set the default value for the field using formula expressions.
                       Fill all the details Then click on next.

Custom_field_field_level_Security

8. Here give the security for field.Select the check boxes to do the visible,Read Only and both visible read only only to the profiles.after selection click on next.


9. It's for displaying field on object layout. If the field will not appear on any pages if you do not select a layout.after that click on save button.you done it.
10. You want to see it go to-->setup-->create--->select object-->scroll down to custom fields and relation ships section you found it.

custom_field_text

11.If you want to enter something on it go to the object-->Select new--->

custom_field_data_enter
 12. You can enter the data don't forget to save after entering the data, otherwise won't save the data.

COMMENTS

BLOGGER
Name

Apex Apex Default Methods Apex Methods Apex_Collections Apps Batch Apex Books CRM eBooks Data Import Wizard Data Management DataLoader Dataloader.io Difference Between Error in Salesforce FAQ's FAQ's-Apex FAQ's-Apps FAQ's-CRM FAQ's-Data loader FAQ's-SOQL & SOSL FAQ'S-Triggers FAQ's-User Profile & Security FAQ's-VF Force.com Explorer Force.com Ide Formulas & Functions Integration Interview Questions Only Latest_Updates Limits&Best Practices Online-Training Reports and Dashboards Salesforce Deployment Salesforce Realtime Examples On Development Salesforce Realtime Task On Admin Salesforce Realtime Tasks Salesforce Realtime Tasks- Apex Salesforce Training Salesforce1 Mobile Sites SOQL Spring'14 Release Triggers User Profile & Security VF Tags VisualForce Winter'14 Release Wizard for Accounts/Contacts Workbench Workflows and Approvals
false
ltr
item
Sfdc Gurukul- All in one place for salesforce and force.com step by step tutorial for beginners: How to create custom fields in salesforce
How to create custom fields in salesforce
How to create custom fields in salesforce,what is a salesforce external id,custom fields in salesforce,salesforce custom fields creation
http://3.bp.blogspot.com/-MrfJIcEIBbY/UgiEz2sIJmI/AAAAAAAAAnc/jwtUs1RrnrM/s1600/Salesforce_custom_field.JPG
http://3.bp.blogspot.com/-MrfJIcEIBbY/UgiEz2sIJmI/AAAAAAAAAnc/jwtUs1RrnrM/s72-c/Salesforce_custom_field.JPG
Sfdc Gurukul- All in one place for salesforce and force.com step by step tutorial for beginners
http://sfdcgurukul.blogspot.com/2013/08/how-to-create-custom-fields-in.html
http://sfdcgurukul.blogspot.com/
http://sfdcgurukul.blogspot.com/
http://sfdcgurukul.blogspot.com/2013/08/how-to-create-custom-fields-in.html
true
4199533888133360731
UTF-8
Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy