2
Fill & Edit
11. Create a web application to enter the students’ details like name, USN, semester, section and CGPA to a database on Salesforce cloud platform.STEPS:1. Launch your SalesforceTrailhead Playground by opening any module and Switch to Lightning Experience if you are currently in Salesforce Classic by clicking your picture in the right top corner and then click on “Switch to Lightning Experience” .2. Then go to Setup gear icon and click “Setup”. 3. Click on “Object Manager” and click “Create> Custom Object” to create new Custom Object. 4. Name the object “Student” 5. Allow Reportsand Allow Search.6. Check the box in front of “Launch New Custom Tab Wizard after saving this custom object”.
27. To create a Tab for the Object: Select any Tab Style for the object “Student”. Click Next, Next, leave the defaults and Save. 8. To add fields to the Object: Go to “Fields & Relationships” option of Student object and Click “New”. 9. Add the following fields one after the other:• Field Label: USN (Length 10),Data Type:Text, Provide an example USN as Help Text, make it as Required Field and Don’t allow Duplicate Values and make it as Case Insensitive. • Field Label: Section (Length 1),Data Type: Text, Make it as Required Field.• Field Label: Semester (Length 1, Decimal Place 0),Data Type: Number, Make it as Required Field. • Field Label: CGPA (Length 2, Decimal Places 2),Data Type: Number, Make it as Required Field.
3Validation Rules:1.Name validation:To add a rule to the Student name so that the name should only start with Letter but not digit: • Go to Validation Rule of Flight Object and click “New” • Name it as “student name validation” • Error Condition Formula: “NOT(REGEX(Name,”*a-zA-Z ]+[ a-zA-Z]+))”.• Error Message:”Please Enter a valid name”. • Error Location: Field–Student name.• Click Save.
42.Semester Validation:To add a rule to the Semester so that itshould always be greater than 0 and less than or equal to 8:• Go to Validation Rule of Flight Object and click “New” .• Name it as “Semester validation”.• Error Condition Formula: OR(Semester__c>8, Semester__c <=0).• Error Message:PleaseEnter a Semester from 1-8. • Error Location: Field–Semester.• Click Save.