In this session let's dive deep into these next data type so in force basically for storing text values.
Salesforce offers five different types of field types.
They are text text area text data along text data average text and cryptic.
Now let's learn one by one.
So the first is the text that is pretty much plain text you know the one that we created in our previous
lecture tech stadium.
It is on separate lines and text area along a second different which is different and encrypted also
is different from the others.
So basically another data model we have a different fields with these different text field types.
Let's create one by one.
This golf course they've already created.
So create other field types as well you know description and the here department details access score.
And here extracurricular details now that we are done creating cool scored.
Let me go ahead and create this description feel for the courses object go to the science what's application
closest object create a new field and at this time it is going to be our next day idea.
So choose a text idea hit next fill in the details.
Done filling in the details and the here.
Pay attention to the options that are available to us while creating our text field.
There were other two options.
One is unique and the other one is externalized.
So here those two options are not available meaning text ADR fields can to be marked unique and text
area fields can serve as externalized.
So these are some of the fine details that we need to note while creating a field.
The default value as it is while creating text hit next and then go ahead and save the field then.
Now that we have created other text data I feel let's go ahead and create a text area long that doesn't
departments object.
So for creating that field go to the departments object the regular process view fields hit the new
button.
And now that the raw data type is going to be text data along here.
Next fill in the details here why filling in the details.
Note that there is a maximum of 1 3 1 0 7 2 characters that is allowed for this particular field.
Right.
Because as that extends along field and the length that is by default that is given as this let me see
you can't do that and number of visible lines.
This is again a different ad to boot.
That is not available to the other text fees number of visible lines meaning like there may be multiple
lines that is available and multiple lines of data that is given as input.
However the number of visible lines is a number of lines that does visible in the U light so maybe not.
Let me turn it to 5.
And once you do all these changes you have to go tell you why and see how the data is shown and then
you why.
And he had also like you know you do not have the option of unique.
You do not have the option of external lighting.
You do not have the option of marking it does required because it is a exterior long field so hit next
and then save the field
perfect.
So our next ideal long field is also created.
Exterior bridge and X and cryptic.
So let me quickly go to the extracurriculars object and create those two fields
no fields assets created now.
So let me create my first next the average field fill in all the details here.
While filling in the details.
Note that the other options are not available here for the next outer chest where unique required on
the external lady.
On top of it the default value is also not available for this particular field type.
Next the average vet and it was available for the other field types and not for this.
So these are some of the differences that we need to understand between the various field types hit
next and go save the FT and I'm a final field type is going to be text encrypted and that is again for
the extracurriculars object same object hit the new button.
Choose the field type text and cryptic fill in all the details here.
And also note the different attributes.
This particular field life has got to offer so you can make it required.
And this being encrypted field it is asking for a mask type so you know that that we want to mask all
the characters are the last four characters clear.
Not this very much applies to your SSN the credit card number so all these details basically be stored
in the encrypted form so you can choose a mask type so for the time being like me chills mask all characters
and what the character has to be.
So that is an example that is given.
For example last four characters clear it means for generally four aces and like we reveal only the
last four digits.
So an example is also given.
So this is the format how we use the extra encrypted data.
It can be made required.
However the option offer unique or the default value or the external lady they are not available here
for the text encrypted hits next save the field perfect.
Now that we have created all of our fields with a different text field types that are available to us.
So now let's go to the UI and see how these attacks fields appear in the you light the courses object.
You just got a couple text fields.
So the first goes to say for example marketing management and the course code.
Let me say MBA one hundred and description.
This is basically the text field that we created.
It does of the data type or text idea.
So what it should be able to carry 255 characters in separate lines right.
But now that like I did more than to who to forget it does it does automatically truncated.
So let me stop with this and it is telling me how many characters are remaining.
Hit the save button.
So my first record in the Course's object is created marketing management and be a hundred.
And this is the description.
And this is how X up feels they appear in that you like perfect now that let's have a look at our tech
stadia.
Long fields so big stadium long that is for the department's object and department details.
So let me go to their departments object and create a new record here fill in the details.
So the department name that have given us Applied Business Studies and I have given up quite a big department
detailed description keep the save button and as you can see this is the first record that we created
in our departments object and this is a text area long field so for text data along the number of characters
a maximum number of characters are disallowed as 1 3 1 0 7 2 and in all you can see it is a pretty big
description right.
And it also very much different from other text area field in that only maximum of 255 characters was
allowed and they all look pretty much like it could hold only some four or five sentences right.
So this is basically the difference between their different text fields.
Now let's move on to Laura next next feed type that is text to the average that is for the extracurriculars
object.
So let me go ahead and create in extracurriculars so that does that extra average.
So let me create my first record here.
So first of all have a look at this exterior rich field it has options for formatting the text and I
have pasted my content to lot here and as you can see I have video form I did my text.
I have also included a picture here and those options are available right here.
Click on the image button and then like you can upload an image.
You can also add web addresses so this is you know very different from the other text feels like we
just learned so once you are done creating all those.
This is the access code basically the text encrypted one right.
So the access code let me have it does.
All right so this is my access code hit the save button.
So once done look at the record and see how this field is different from the other text fields that
we created.
All right.
Like we have done formatting we have added images.
And look at the access code.
All right.
Because the option that we chose was the last four characters to be clear.
So that is why like it is appearing like this so these are different types of flow text fields field
types that we have it sets forth for example the courses in the classes object the very first record
that we created.
You know this goes names.
This is a text field.
All right.
But this is a text area field so that in itself lectures the difference right between the text field
these are text fees but this is a text area fee.
However in departments the one that we created was text area along right it is different from the text
and the text area fields and in extracurricular activities the one that we created was text area average
with all the formatting with the images with the you order and the text and corrupted field type.
So these are the different text data types that are available and also pay attention to the various
options that was available and that was different for each one of them.
Some cannot be made required.
Some can be made required and not all field types can be made as external lady and not all these text
to text field types can be made unique.
The default value wasn't available for some of the text field types.
So based on my new detention to all these details and how it is different from each one of them.