Application won't load
Application won't load
My application won't load at this time. I don't know if it is something I did, or something on the server. I can edit the app, but it cannot be deployed. It never shows on the screen. Below is the code.
form Hour_Input
{
displayname = "Input Hours"
captcha = true
success message = "Data Added Successfully!"
Individual
(
type = checkbox
defaultvalue = false
on user input
{
if (input.Individual)
{
input.Team_Summary = false;
show Confirm_Email;
show Password;
show Year;
show Month;
show Team1;
show First_Name;
show Last_Name;
show Email_Address;
show Radio_Callsign;
}
}
)
Team_Summary
(
displayname = "Team Summary"
type = checkbox
defaultvalue = false
on user input
{
//You can drag and drop tasks from the immediate left pane
//Below is the SAMPLE script for dynamic, condition based field manipulation
if (input.Team_Summary)
{
input.Individual = false;
show Confirm_Email;
show Password;
show Year;
show Month;
show Team1;
show Email_Address;
hide First_Name;
hide Last_Name;
hide Radio_Callsign;
}
}
)
must have Password
(
type = text
on user input
{
if (input.Password != "sarhours")
{
disable Last_Name;
disable First_Name;
show plain;
}
if (input.Password == "sarhours")
{
hide plain;
enable Last_Name;
enable First_Name;
}
}
)
plain
(
type = plaintext
defaultvalue = "<font style=\"font-weight: bold; font-family: arial,helvetica,sans-serif; color: rgb(255, 0, 0);\" size=\"4\">Use the correct password</font><br>"
)
First_Name
(
displayname = "First Name"
type = text
)
Last_Name
(
displayname = "Last Name"
type = text
)
Radio_Callsign
(
displayname = "Radio Callsign"
type = text
maxchar = 6
)
must have Email_Address
(
displayname = "Email Address"
type = email
)
Confirm_Email
(
displayname = "Confirm Email"
type = email
on user input
{
if (input.Email_Address != input.Confirm_Email)
{
show plain1;
}
if (input.Confirm_Email == input.Email_Address)
{
hide plain1;
}
}
)
plain1
(
type = plaintext
defaultvalue = "<font style=\"font-weight: bold; font-family: arial,helvetica,sans-serif; color: rgb(255, 0, 0);\" size=\"4\">Email addresses don't match!</font><br>"
)
must have Team1
(
displayname = "Team"
type = picklist
values = Team_List.Team_Name
)
must have Year
(
type = picklist
values = {"2007", "2008", "2009"}
defaultvalue = "2008"
)
must have Month
(
type = picklist
values = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}
)
Administration1
(
displayname = "100 Administration"
type = number
width = 20
)
Equipment_Up_Keep
(
displayname = "112 Equipment Up-Keep"
type = number
width = 20
)
Fundraising
(
displayname = "115 Fundraising"
type = number
width = 20
)
Inter_Unit_Support
(
displayname = "116 Inter-Unit Support"
type = number
width = 20
)
Personal_Fitness
(
displayname = "119 Personal Fitness"
type = number
width = 20
)
Public_Relations
(
displayname = "122 Public Relations"
type = number
width = 20
)
Rescue_Operations
(
displayname = "123 Rescue Operations"
type = number
width = 20
)
Rescue_Standby
(
displayname = "124 Rescue Standby"
type = number
width = 20
)
Rescue_Operations1
(
displayname = "125 Search Operations"
type = number
width = 20
)
Training
(
displayname = "127 Training"
type = number
width = 20
)
Team_Meeting
(
displayname = "128 Team Meeting"
type = number
width = 20
)
Staff_Meeting
(
displayname = "129 Staff Meeting"
type = number
width = 20
)
Other
(
displayname = "130 Other"
type = number
width = 20
)
Miles
(
displayname = "145 Miles"
type = number
width = 20
)
Total_Hours
(
type = formula
value = (Administration1 + Equipment_Up_Keep + Fundraising + Inter_Unit_Support + Personal_Fitness + Public_Relations + Rescue_Operations + Rescue_Standby + Rescue_Operations1 + Training + Team_Meeting + Staff_Meeting + Other)
)
on add
{
on load
{
hide plain1;
hide plain;
hide Confirm_Email;
hide Password;
hide Year;
hide Month;
hide Team1;
hide First_Name;
hide Last_Name;
hide Email_Address;
hide plain2;
hide Radio_Callsign;
}
on validate
{
if (input.Individual && (input.Last_Name == ""))
{
alert "Missing Last Name";
cancel submit;
}
}
on success
{
sendmail
(
To : input.Email_Address
From : zoho.adminuserid
BCC : "sardata@sbsar.org"
Reply to : "jlehman@caverescue.net"
Subject : "Individual Hour Report"
Message : "" + input.formdata
)
}
}
}