 Hello friends, I'm Sanjay Gupta. I welcome you on Sanjay Gupta Tech School. In this video, I'm going to demonstrate you about different data types like text, text area, text area long and text area rich in Salesforce Lightning. Before starting, let me show you how you can get my Salesforce related video series. So you can search my name on YouTube and on my channel you can watch various Salesforce and other programming related videos. So now I'm going to open my university app in another tab. So this is a setup and here this app is available. So I'm going to create all four text type data, sorry, all four text data related fields on this book object. So I'm searching for book. Here it is. So right now you can see here only book number, book name, price and order four fields are available here. So now we are going to create more fields. So if we scroll down, so here you will see all four data type text, text area, text area long and text area rich. So first time selecting text, you can read its description. It says text data type allows users to enter any combination of letters and numbers. So now clicking on next. So label will be author name. Length is suppose 50. Then we have description help tags. So these are optional. So if you want these things you can fill. If you want to make it required, you can check this checkbox. If you want to make it unique, you can check this checkbox. Under unique we have case insensitive and sensitive both options. Then if you want to set this unit as the unique record identifier for an external system, so you can check this external ID checkbox. And if you want to enter any default value. So as this is of text type. So you need to enter default value inside double quotes. So I'm leaving all these options as it is. Now this is field level security. So we need to set field level security for this field for different profiles. So visible means it will be visible and editable for a particular profile near this checkbox is checked. And if we also select read only, it means this field will be visible for that particular profile button read only more. And we can also deselect both the options. So for this analytics cloud integration user now this field will not be visible. Either for read only or for editable. So it should it will not be visible. It means you cannot enter any value or you cannot read any value. So right now I'm selecting visible for all the profiles. So this is asking to add this field to pace layout. So if we select this checkbox, this field will be automatically added on pace layout. So I'm clicking on save and new. Next I'm going to create text area. So you can read its description. It says allow users to enter up to 255 characters on separate lines. So limit is 255 characters, but you can enter characters in separate lines that is not available in text. So this is the basic difference between text and text area. So label will be about author and description help text. These are optional required. If you want it, you can check it as true. Then you can fill the default value as well. Now same field security. So I'm making it visible for all the profiles. Then I want to add this on pace layout so it will be added. So again I'm clicking on save and new. This time I'm picking long area, sorry, text area long. So let's read its description. So it says allows users to enter up to 131072 characters on separate lines. Right. So label will be list of contents. So this field will contain list of contents of books. The length is 32768, but max is 131072. So you can modify this length and also read this carefully. You are currently using zero out of 1638400 characters on this object. You have these additional characters to allocate to this field. So right now we are using zero characters out of these. So if you want to increase this length, you can do so. So use length carefully because we have limited characters on this object. Then further we have description and text and default value so you can pick them as for the requirement. Then again field of security visible for all the profiles clicking on next. So if you want to add it on page layout. Now last is text area rich. So we did its description. It says allows user to enter formatted text, add images and links up to 131072 characters on separate lines. Right. So if you want to add images and formatted text, then you can pick this. So now you can see you are currently using these much of characters out of this. So for text here long, we mentioned this length. So that's why we are using this much if we put 32768 here. So next time when we will be creating text here long or text here rich. So this length will be doubled. So available characters are this much. So you can choose wisely length of this particular field. Now here visible lines are 25 so you can increase or decrease. So I'm using it to 10. Looking on next visible for all the profiles. Then I'm adding this on page layout and clicking on save. So right now I'm clicking on save because I don't want to create more fees. So now you can see I created four fees. So here about author text area 255 about book rich text area. Author name text and the list of contains text area long. So now moving to the book tab so refreshing it. Clicking on new. So that I can create new record for this book object. And here you will see all available fields. So you can see author name about author list of contents and about book. All these are available here. So if you fill these details. Author name suppose XYZ about author. So here you can see you can enter the data in separate lines. Then this is list of contents. So here you can type like horror. So here scroll bar is also available so you can put data in different lines. So list of content is of type text area long. So it will contain more number of characters as compared to about author. Then forth one is about books. So here you can format your text also. So this book is for sales for lightening experience. So now if you want to highlight sales force and bold talent underline so you can apply this formatting. Then if you want to insert picture you can click on this. If you want to insert a link you can click on this if you want to make this text. Align left right center so you can choose bullets and numbering. So this way you can apply formatting colors are also available. Right. So this is text area which so four types of text data type available in sales force both in classic as well as in lightening. So you can choose a particular type whichever is required as per the requirement of the project. So now if I save this. So record will be created. And here you can see the data or the name about our list of contents about book. So all fields are available. That we created. So I hope you understood the difference between text text area text area long and text area rich. I hope you understood whatever I demonstrated in this video. If you want to follow more sales force related videos. You can search me on YouTube by my name. Thank you for watching this video.