ckmForms = application.customerKnowledgeMap.customerKnowledgeMapForms;
if(StructKeyExists(request.params,"formSubmitted")){
//Call form has been submitted
handleFormSubmit();
}else if(StructKeyExists(request.params,"callForm") and StructKeyExists(request.params,"accountID")){
//Display the call form
if(StructKeyExists(request.params,"order")){
ckmForms.renderCallForm(request.params.accountID,request.params.order);
}else{
ckmForms.renderCallForm(request.params.accountID);
}
}else if(StructKeyExists(request.params,"storyID")){
//Display a story
ckmForms.renderStory(request.params.storyID);
}else if(StructKeyExists(request.params,"viewStories") and StructKeyExists(request.params,"accountID")){
//Display the listing of stories for the account
ckmForms.renderStoryView(request.params.accountID);
}else if(StructKeyExists(request.params,"accountID")){
//Display the basic account view page
if(StructKeyExists(request.params,"order")){
ckmForms.generateAccountView(request.params.accountID,request.params.order);
}else{
ckmForms.generateAccountView(request.params.accountID);
}
}else{
//Display a baseic list of account to select
ckmForms.generateAccountSelection();
}
if(request.params.contact neq "none"){
contactID = request.params.contact;
}
if(FindNoCase("uuid_",fieldName)){
fieldNameTemp = ReplaceNoCase(fieldName,"uuid_","","ALL");
if(StructKeyExists(request.params,fieldNameTemp) && request.params[fieldNameTemp] neq ""){
elementStruct = StructNew();
elementStruct.customerQuestionID = fieldNameTemp;
elementStruct.value = request.params[fieldNameTemp];
elementStruct.id = request.params[fieldName];
elementStruct.accountID = request.params.account;
elementStruct.contactID = contactID;
ArrayAppend(answers,elementStruct);
}
}
Your information has been submitted.
Your submission has entered the queue and will finish processing in approximately #Round(ArrayLen(answers)/50)+1# minutes.
#application.customerKnowledgeMap.customerKnowledgeMapForms.generateAccountView(request.params.account)#
There was an issue submitting the form. Please check the error logs.
#application.customerKnowledgeMap.customerKnowledgeMapForms.renderCallForm(request.params.account)#