request.element.isStatic = 0;
showError = false;
appConfigStruct = application.npsStory.appConfig;
configType = "story";
// Set the Edit Form Page defaults
editFormPageID = 0;
editFormPageURL = '';
// Get the editFormPageID from the Configuration Element
if ( StructKeyExists(appConfigStruct,configType) AND StructKeyExists(appConfigStruct[configType],"editorPageID") AND IsNumeric(appConfigStruct[configType]['editorPageID']) )
editFormPageID = appConfigStruct[configType]['editorPageID'];
// Set the editFormPageURL from the editFormPageID
editFormPageURL = application.npsStory.csData.getCSPageURL(editFormPageID);
// Set the editFormPageURL from the Configuration Element
//editFormPageURL = '';
//if ( structKeyExists(appConfigStruct,"addEditStoryFormPage") AND LEN(TRIM(appConfigStruct['addEditStoryFormPage'])) )
//editFormPageURL = TRIM(appConfigStruct['addEditStoryFormPage']);
// load header for jQuery UI
application.npsStory.scripts.loadJQuery();
application.npsStory.scripts.loadADFLightbox();
// Get the Data from CS
items = attributes.elementinfo.elementdata.PropertyValues;