-
Notifications
You must be signed in to change notification settings - Fork 0
/
addContact.cfm
44 lines (44 loc) · 1.14 KB
/
addContact.cfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!--
first call: display input form;
on submit, execute uspAddNewContact & execute JS to populate session form
-->
<cfinclude template="authenticateExe.cfm">
<cfscript>
formName = FORM.formName;
displayName = FORM.displayName;
valueName = FORM.valueName;
up2snuff = 1;
</cfscript>
<cfif isDefined("FORM.adding")>
<cfif not FORM.adding>
<cfinclude template="formContactPopup.cfm">
<cfelse>
<cfscript>
up2snuff = 1;
</cfscript>
<cfinclude template="incCheckForm.cfm">
<cfif missingRequired>
<cfinclude template="formContactPopup.cfm">
<cfelse>
<cfinclude template="incCheckDataFormat.cfm">
<cfif not up2snuff>
<cfinclude template="formContactPopup.cfm">
<cfelse>
<cfinclude template="uspAddNewContact.cfm">
<cfif not up2snuff>
<cfinclude template="formContactPopup.cfm">
<cfelse>
<cfscript>
cnctName = FORM.LastName & ', ' & FORM.FirstName;
cnctID = newCntct;
</cfscript>
<cfinclude template="contactSubmit.cfm">
</cfif>
</cfif>
</cfif>
</cfif>
<cfelse>
<cfinclude template="incBeginInfo.cfm">
<cfinclude template="incError.cfm">
<cfinclude template="incEnd.cfm">
</cfif>