Sample Application - Recruitment - Post Application


form New_Applicant
{
    displayname = "Add your resume"    
    must have Applicant_Name
    (
        displayname = "Your Name"
        type = text
        width = 30
        maxchar = 30
    )
    must have Email_ID
    (
        displayname = "Email ID"
        type = email
        width = 30
        maxchar = 30
    )
    Date_of_Birth
    (
        displayname = "Date of Birth"
        type = date
    )
    must have Education
    (
        type = picklist
        values = {B.E,   B.Tech,   B.Sc,   B.Com,   B.A,   M.A,   M.S,   M.Com,   M.Sc,   MBA,   
MCA,   M.E,   M.Tech,   Diploma}
    )
    Experience
    (
        type = picklist
        values = {Fresher,   Experience 1yr,   Experience 2+yrs,   Experience 5+yrs,   
Experience 10+yrs}
    )
    Applied_For
    (
        displayname = "Applied For"
        type = picklist
        values = New_Opening.Position_Name
    )
    must have Contact_Number
    (
        displayname = "Contact Number"
        type = number
    )
    Address
    (
        type = textarea
    ) 
    on success
    {
        opening  =  New_Opening  [Position_Name == this.Applied_For];
        if (opening.Status == "Closed")
        {
            sendmail
            [
                To          :  this.Email_ID
                Subject     :  "Reg application for job posted at recruitment.zohocreator.com"
                Message     :  "The job profile " + this.Applied_For + " for which you have 
applied is not currently open "
            ]
        }
        else if (opening.Experience == this.Experience)
        {
            sendmail
            [
                To       :  "manager-recruitment@adventnet.com"
                Subject  :  "Applicants resume matches job profile"
                Message  :  this.Applicant_Name + " matches the job profile<br> Contach Info: " 
+ this.Email_ID
            ]
        }
        else
        {
            sendmail
            [
                To       :   this.Email_ID
                Subject  :  "Reg application for job posted at recruitment.zohocreator.com"
                Message  :  "The experience required for the job profile " + this.Applied_For + 
"does not match yours"
            ]
        }
    }
}