x x x
x
Only portrait mode is currently supported - please rotate your device.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


                        

HTML
<link rel="stylesheet"
  href="https://gsvlabs-confluence-files.s3-us-west-2.amazonaws.com/stylesheets/EWCSmith/eventsPlatformStyleesheetEWCeventsPlatformStylesheet_smith.css">



<style>
input#i_topicIddiv#templateContainer {
    margin: 13px 6px 43px;
    width: 10%fit-content;
}

labelp.templateDownload {
    color: var(--primary-font-color);
    borderbackground: 1px solid var(--ssecondary-tab-outline) !importantcolor);
    font-sizepadding: var(--font-size-s);
10px;
}
input#i_currentBannerImage {
    widthdisplay: none 150px!important;
}
.aui-select2-drop .select2-results   background-.select2-highlighted {
	color: black transparent!important;
    padding: 5px 10px;
    margin: 5px;
    line-height: 45px;
    cursor: pointer;
}

.radio {
    position: absolute;
    z-index: 1;
}
#entryStartups .cf_textarea {
    background: transparent !important;
    color}
.aui-select2-drop .select2-results .select2-result-selectable {
	color: var(--primary-font-color);
}
/* hide source code button from editor */
.jqte_tool_21 {
	display: none !important;
}

/* =============== CONFIFORM DATA STYLING =============== */
.aui-dialog label {
    color: var(--secondaryprimary-font-color) !important;
}
#entryStartups span {
	margin: 0px;
}
div#entryStartups {
    flex-direction: column;
}
.currentOrganizer {
	display: none !important;
}
div#uploadButton4 {
	font-family: unset;
	background 
.aui-dialog form.aui .text, form.aui .password, form.aui .select, form.aui .aui-select2-container {
    color: var(--primary-font-color) !important;
}

.aui-dialog textarea#i_agenda {
    color: var(--cbprimary-font);
	color: var(--cb-fill);
    border-rdius: 6px-color) !important;
}
textarea#i_locationdiv#entryOptions .text {
    backgroundmin-width: unset;
}
input#i_location {
    min-width: 100%;
}

div#entryLocation

.aui-dialog textarea#i_program {color: black !important;}

.aui-dialog li.select2-search-choice div {
    display: flex;
    flex-direction: column;
}
div#select2-drop {
	background-image: unset !important;
	background: white !important;
}
#main-content {
background-image: unset !important;
}
.my-button {
background-image: unset !important;
}
div.display-none {
    display: none;
}

span.i_holdingrow_currentName {
	display: none;
}
span.i_holdingrow_name {
	/*display: none;*/
}
#entryName{
	/*margin: 0 0 10px 0;*/color: var(--primary-font-color) !IMPORTANT;
}
/* =============== ~~~~~~~~~~~~~~~~~~~ =============== */
span.i_holdingrow_currentName {
	display: none;
}
span.i_holdingrow_name {
	/*display: none;*/
}
#entryName{
	/*margin: 0 0 10px 0;*/
}
#entryCategory {
	flex-direction: column;
}
div#entryLocation {
    display: flex;
    flex-direction: column;
}
div#entryLocation {
    margin-bottom: 5px;
}
.nameSubtext {
    display: none;
    height: auto;
    margin: 0 0px 0 0px;
    color: whitevar(--primary-font-color);
    object-fit: contain;
    font-family: Raleway;
    font-size: 9px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.91;
    letter-spacing: 0.6px;
}
p.auto-cursor-target {
	margin: 0px !important;
}
.my-button {
	border:   1px solid var(--cb-outline)display: flex;
    /* margin-rightjustify-content: 10pxcenter; */
    backgroundalign-imageitems: linear-gradient(to right, #26c9b7 , #23c3ad);
	margin-top: 5px;
}
div#orgupload {center;
    color: white !important;
    marginborder-radius: 15px 0 0 5px !important;
}
.sponsorImage1{
	justify-content: start8px !important;
    flex-wrap: wrap;
}
#orgupload{
	height: unsetbackground: var(--primary-color) !important;
}
img.uploadImage {
    widthfont-size: 30px16px;
    heightfont-weight: 45px500;
    marginpadding: 010px auto;
	
}

.uploadButton {20px;
    margin-right: 10px;
    widthtext-transform: 85%uppercase;
    bordertext-align: 1px solid var(--cb-outline)center;
    /* margin-rightcursor: 10pxpointer; */
    background-image: linear-gradient(to right, #26c9b7 , #23c3ad);
	border: 0px !important;
}
div#orgupload,
div#bannerImgupload {
    font-familymargin: Raleway;
15px 0 0  font-size: 15px;
    font-weight: bold5px !important;
}
.sponsorImage1{
	justify-content: start;
    fontflex-stretchwrap: normalwrap;
}
#orgupload,
#bannerImgupload{
	height:    font-style: normal;
    line-height: 1.75;unset !important;
}
img.uploadImage {
    letter-spacingwidth: normal30px;
    colorheight: #ffffff45px;
    margin: 8px0 auto;
	filter: invert(1) brightness(50%)  cursor: pointer;sepia(100%) saturate(10000%);
}

.uploadButton {
    max-width: 130px85%;
    heightborder: 40pxvar(--border);
    displayborder-radius: flex8px;
    /* alignmargin-itemsright: center10px; */
    justify-content: center;
}
.fileUploadContainer{
	margin: 9px 8px 9px 0;
	min-width: 190px;
	flex-direction: columnbackground: var(--primary-color);
    font-family: Raleway;
    font-size: 15px;
    textfont-alignweight: centerbold;
    widthfont-stretch: 30%normal;
    paddingfont-style: 5pxnormal;
    colorline-height: white1.75;
    displayletter-spacing: flexnormal;
    bordercolor: solid 1px rgba(300,300,300,0.51);
}
input#i_currentSponsorimage1 {white;
    margin: 0 0 0px -5px;
}
input#i_currentSponsorimage3 {
	margin: 0 0 0px -5px;
}
label#i_labelfor_currentSponsorimage3 {
    margin: 0 0px 12px -5px;
}
button.clearButton {
	cursor: pointer8px auto;
    cursor: pointer;
    max-width: 130px;
    height: 40px;
    widthdisplay: fit-contentflex;
    /* margin-bottomalign-items: 9pxcenter; */
    /* margin-topjustify-content: 10px; */
    border: transparent;
    margin-right: 10pxcenter;
}
.fileUploadContainer{
	margin: 9px 8px 9px 0;
	min-width: 190px;
	flex-direction: column;
    backgroundtext-imagealign: transparentcenter;
    font-familywidth: Raleway30%;
    fontborder-sizeradius: 13px3px;
    font-weightpadding: normal5px;
    color: var(--secondary-font-stretch: normalcolor);
    font-styledisplay: normalflex;
    line-heightborder: 1.75 1px solid #d1d1d1;
	background: var(--secondary-color);
}
input#i_currentSponsorimage1 {
  letter-spacing: normal;
 margin: 0 0 color:0px #ffffff-5px;
}
input#i_currentSponsorimage3 {
	margin: 0 0 background:0px transparent-5px;
}
.select2-container-multi .select2-choices .select2-search-field input.select2-active label#i_labelfor_currentSponsorimage3 {
    backgroundmargin: 0 transparent !important0px 12px -5px;
}
form.aui .text[disabled], form.aui .password[disabled], form.aui .textarea[disabled], form.aui .select[disabled], form.aui .multi-select[disabled] {
 background: transparent;
}
div#entrySponsors {button.clearButton {
	cursor: pointer;
    width: 50% !important;
}

input#i_sponsors {
fit-content;
    /* maxmargin-widthbottom: 500px !important;9px; */
    /* widthmargin-top: 100% !important10px; */
}

#entrySponsors .auto-cursor-target {
  border: transparent;
 width: 100% !important;
}

span.i_holdingrow_sponsors {max-width: 100% !important;}
input#i_addImage1-yes { margin-right: 10px;
    background-image: transparent;
    displayfont-family: none;
}

input#i_removeImage1-no {Raleway;
    displayfont-size: none13px;
}
input#i_addImage2-yes {
    displayfont-weight: none;
}

input#i_removeImage2-no {normal;
    displayfont-stretch: nonenormal;
}
label {
    colorfont-style: var(--primary-color)normal;
    borderline-height: var(--border)1.75;
    fontletter-sizespacing: var(--font-size-s)normal;
    widthcolor: 150pxvar(--primary-color);
    background-color: transparent;
    padding: 5px 10px;
    margin: 5px 0 5px 0;}
.select2-container-multi .select2-choices .select2-search-field input.select2-active {
    line-heightbackground: 45pxtransparent !important;
}
form.aui .text[disabled], form.aui  cursor: pointer;
}

input:checked + label {
    background: var(--us-tab-outline);
    color: #ffffff!important;
    box-shadow: none;
}
textarea#i_agenda.password[disabled], form.aui .textarea[disabled], form.aui .select[disabled], form.aui .multi-select[disabled] {
 background: transparent;
}
div#entrySponsors {
    width: 50% !important;
}

input#i_sponsors {
    max-width: 100%500px !important;
}

a#saveFormButton {
	margin-left: auto;
	width: 170px;
}

div#entryAgenda {
   /* width: 100% !important; */
}

textarea#i_program#entrySponsors .auto-cursor-target {
    max-width: 100% !important;
}

select#i_countryspan.i_holdingrow_sponsors {
    max-width: 100% !important;
}

select#i_roundinput#i_addImage1-yes {
    max-widthdisplay: 100%none;
}

input#i_startDateremoveImage1-no {
    max-widthdisplay: 100% !important;none;
}
input#i_addImage2-yes {
    paddingdisplay: 0 10px 0 !importantnone;
}

textarea#iinput#i_agendaremoveImage2-no {
    backgrounddisplay: transparentnone;
}
label {
    color: white !IMPORTANT;
}
textarea#i_program {var(--primary-color);
    backgroundborder: transparentvar(--border);
    color: white !IMPORTANT;
}

span.i_holdingrow_agenda {
    display: flexfont-size: var(--font-size-s);
    width: 150px;
    flexbackground-directioncolor: column;
}
.saveFormContainer {transparent;
    displaypadding: 5px flex10px;
    text-alignmargin: right 5px 0 5px 0;
    widthline-height: 95.5%45px !important;
    margincursor: -10px 0 10px 0pointer;
}

.confiFormsFormFooterinput:checked + label {
    displaybackground: none;
}
.jqte_toolbar.unselectable {var(--us-tab-outline);
    heightcolor: 27px;
}
.jqte * {
	color: white !importantvar(--primary-font-color)!important;
    box-shadow: none;
}
div.jqte_editor *textarea#i_agenda {
    backgroundmax-colorwidth: transparent100% !important;
}
span.i_holdingrow_agenda
#saveFormButton {
	margin-left:    width: inheritauto;
	width: 170px;
	margin-top: 6px;
}
span.i_holdingrow_name
div#entryAgenda {
    width: inherit100%;
}

span.i_holdingrow_cohoststextarea#i_program {
    max-width: 100% inherit!important;
}

span.i_holdingrow_rsvpselect#i_country {
    max-width: inherit100%;
}

span.i_holdingrow_sponsorsselect#i_round {
    max-width: inherit100%;
}

span.i_holdingrow_typeinput#i_startDate {
    max-width: inherit100% !important;
}

select#i_type    padding: 0 10px 0 !important;
}
textarea#i_agenda {
    max-widthbackground: unset;
}

input#i_startDate {transparent;
    max-widthcolor: unsetvar(--primary-font-color) !importantIMPORTANT;
}

input#itextarea#i_endDateprogram {
    max-widthbackground: unset !important;
}
p.auto-cursor-target {
transparent;
     width: inheritcolor: var(--primary-font-color) !IMPORTANT;
}

span.conf-macro.output-inlinei_holdingrow_agenda {
    widthdisplay: inheritflex;
	justify-content: flex-end    flex-direction: column;
}

/* Styling for uploading pictures button */
input[type="file" i]::-webkit-file-upload-button {
  height: 40px;
  padding: 10px 20px;
  background: transparent;
  border: var(--border);
  color: white;
  font-size: var(--font-size-xs);
  cursor: pointer;
  text-transform: uppercase;
}
input#i_name.saveFormContainer {
    display: flex;
    text-align: right;
    width: 95.5% !important;
    margin: -10px 0 10px 0;
}

.confiFormsFormFooter {
    display: none;
}
.jqte_toolbar.unselectable {
    widthheight: 100% !important;
    max-width: unset 27px;
}
.jqte * {
	color: wvar(--secondary-color) !important;
}
input#i_image, input#i_sponsorimage1, input#i_sponsorimage2, input#i_sponsorimage3, input#i_imageOrganizer {
  color: whitediv.jqte_editor * {
    background-color: transparent !important;
}
span.confiFormsFormBorderi_holdingrow_agenda {
	border    width: none !importantinherit;
}
.cf-calendar-timespan.i_holdingrow_name {
	display    width: none !important;
}
div {inherit;
}

li.select2-search-choice div span.i_holdingrow_cohosts {
    colorwidth: whiteinherit;
}

span.output-inlinei_holdingrow_rsvp {
    marginwidth: 5pxinherit;
	display: flex;}

span.i_holdingrow_sponsors {
    flex-directionwidth: columninherit;
}

div#s2idspan.i_iholdingrow_cohoststype {
    /*max-width: 285pxinherit !important;*/
}
.questionContainer
select#i_type {
    backgroundmax-width: var(--s-tab-fill);
 unset;
}

input#i_startDate {
   padding: 30px;
	 max-width: 80%unset !important;
}

    margin: auto;input#i_endDate {
    alignmax-itemswidth: unset center!important;
}

form.aui legend, form.aui label {object-fit: contain;font-family: Raleway;font-size: 11px;font-weight: normal;font-stretch: normal;font-style: normal;line-height: 1.91;letter-spacing: 0.6px;color: #fafafa;}

form.aui .text, form.aui .password, form.aui .select, form.aui .aui-select2-container .select2-choices {
    background: transparent;
    opacity: 0.75;
    border: solid 1px rgba(300,300,300,0.51) !important;
    min-height: 40px !important;
	color:white;
}
   
.ffi input[type="file"] {
    background: transparent !important;
    opacity: .21;
    border: solid 1px rgba(300,300,300,0.51);
}

#i_holdingrow_image labelp.auto-cursor-target {
    width: inherit;
}

div#select2-drop {
    background: var(--secondary-color) !important;
    color: var(--secondary-font-color);
}
span.conf-macro.output-inline {
    width: inherit;
	justify-content: flex-end;
}

/* Styling for uploading pictures button */
input[type="file" i]::-webkit-file-upload-button {
  height: 40px;
  padding: 10px 20px;
  background: transparent;
  border: var(--border);
  color: var(--primary-font-color);
  font-size: var(--font-size-xs);
  cursor: pointer;
  text-transform: uppercase;
}
input#i_name {
    backgroundwidth: transparent100% !important;
    opacitymax-width: 0.75;
    border: solid 1px #ffffffunset !important;
}

.jqteinput#i_editorimage, .jqteinput#i_source {
    background: transparent;
	color: whitesponsorimage1, input#i_sponsorimage2, input#i_sponsorimage3, input#i_imageOrganizer {
  color: var(--primary-font-color);
}
.confiFormsFormBorder {
	border: none !important;
}

.jqte_toolbarcf-calendar-time {
	display:    background: rgba(300,300,300,0.5);
none !important;
}
div {}

.jqte_tool, .jqte_tool_icon, .jqte_tool_label li.select2-search-choice div {
    /* opacity: 0.21; */color: var(--primary-font-color);
}
span.output-inline {
    bordermargin: solid 0px #ffffff;
}
.desc{
	object-fit: contain5px;
	display: flex;
    fontflex-sizedirection: 11px;column;
}
div#s2id_i_cohosts {
    font/*max-weightwidth: 285px bold!important;*/
}
.questionContainer {
    font-stretchbackground: normalvar(--us-tab-fill);
    font-stylepadding: normal30px;
	width:    line-height: 1.9180% !important;
    letter-spacingmargin: 0.6pxauto;
    coloralign-items: #fafafacenter;
}

.questionwrapper {
	height: auto !important;
}
#entryNameInput {
	flex-direction: column;
}
#entryCountry {
	flex-direction: column;
}
#entryCategory {
	flex-direction: column;
}
#entryRound {
	flex-direction: column;
}
div#entryCatLoc {
	flex-direction: row;
}
div#entryLocation {
    margin-bottom: 5px;
}
div#entryType {
    flex-direction: column;
}

div#entrySponsorsform.aui legend, form.aui label {object-fit: contain;font-family: Raleway;font-size: 11px;font-weight: normal;font-stretch: normal;font-style: normal;line-height: 1.91;letter-spacing: 0.6px;color: #fafafa;}

form.aui .text, form.aui .password, form.aui .select, form.aui .aui-select2-container .select2-choices {
    flex-directionbackground: column;
}

div#entryEndTime {var(--secondary-color);
    opacity: 0.75;
    flexborder-directionradius: column3px;
}

div#entryStartTime {    border: 1px solid #d1d1d1;
    flexmin-directionheight: column40px !important;
}
div.entryInput {
	flex-direction: column	color: var(--primary-font-color);
	min-width: 100%;
}
#entrySummary   {
	flex-wrap: wrap;
}

div#action-errors-confiform
.ffi input[type="file"] {
    background: rgba(0,0,0,0.5): transparent !important;
    opacity: .21;
    border-radius: none3px;
    paddingborder: 25pxsolid 25px !important;
1px rgba(300,300,300,0.51);
}

#i_holdingrow_image label {
    widthbackground: 80%transparent !important;
    marginopacity: auto0.75;
    alignborder-itemsradius: center3px;
}

#action-errors-confiform ul li {
 border: solid  color: var1px #ffffff;
}

.jqte_editor, .jqte_source {
    background: var(--primary-fontsecondary-color);
    font-size	color: var(--primary-font-size-mcolor)!important;
}

.jqte_toolbar {
    paddingbackground: 5px 0pxrgba(300,300,300,0.5);
}

.aui-message::after.jqte_tool, .jqte_tool_icon, .jqte_tool_label {
    /* displayopacity: none0.21;   
}

@media only screen and (min-width: 320px) and (max-width: 480px) {
	.desc.startDateLabel {
  	  	margin-bottom: 10px;
	}

	.desc.endDateLabel {*/
    border-radius: 3px;
    border: solid 0px #ffffff;
}
.desc{
	object-fit: contain;
    font-family: Raleway;
    font-size: 11px;
    	marginfont-bottomweight: 10pxbold;
	}

	.desc.startEndLabel {
    	marginfont-bottomstretch: 10px;
	}

	div#entryCatLoc {normal;
    	flexfont-directionstyle: column !important;
	}

	.jqte_toolbar.unselectable {
normal;
     	line-height: 45px !important;
	}
	.custom-section-container {
		width: 100%;
		max-width: 100;
	}

	.questionContainer {
		padding: 12px;
		width: 88% !important;
		margin: 0 auto !important;
	}

	p.auto-cursor-target {
		width: 100% !important;
	}

	span.conf-macro.output-inline {
		width: 100%;
		margin: 7px 0px !important;
	}

	.confiFormsFormContent {
		padding: 0px;
	}

	input#i_sponsors {
		max-width: 100% !IMPORTANT;
		width: 100%;
	}

	div#orgupload {
		margin: 15px 0 0 0px !important;
	}

	a#saveFormButton {
		margin: 0 auto;
		width: 100%;
	}

	.saveFormContainer .my-button {
		margin: 0 auto;
		display: flex;
		text-align: center;
		align-items: center;
		justify-content: space-around;
	}

	.saveFormContainer {
		width: 100% !important;
	}

	.questionwrapper.question-mobile {
		display: flex;
		align-self: flex-start;
		margin-left: 6%;
	}
	div#entryStartTime .questionwrapper.question-mobile {
		height: auto !important;
		margin-bottom: -10px;
	}
	div#entryEndTime .questionwrapper.question-mobile {
		height: auto !important;
		margin-bottom: -10px;	
	}
	.fileUploadContainer {
		min-width: 95%;
	}
	div#entrySponsors1.91;
    letter-spacing: 0.6px;
    color: var(--primary-font-color);
}
.questionwrapper {
	height: auto !important;
}
#entryNameInput {
	flex-direction: column;
}
#entryCountry {
	flex-direction: column;
}
#entryRound {
	flex-direction: column;
}
div#entryType {
    flex-direction: column;
}

div#entrySponsors {
    flex-direction: column;
}

div#entryEndTime {
    flex-direction: column;
}

div#entryStartTime {
    flex-direction: column;
}
div.entryInput {
	flex-direction: column;
}
#entrySummary {
	flex-wrap: wrap;
}

div#action-errors-confiform {
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 9px;
    padding: 25px 25px !important;
    width: 80% !important;
    margin: auto;
    align-items: center;
}

#action-errors-confiform ul li {
    color: var(--primary-font-color);
    font-size: var(--font-size-m);
    padding: 5px 0px;
}

.aui-message::after {
    display: none;   
}

@media only screen and (min-width: 320px) and (max-width: 480px) {
	.custom-section-container {
		width: 100% !important;
		max-width: 100;
	}
}
</style>

<script type="text/javascript" src="https://gsvlabs-confluence-files.s3-us-west-2.amazonaws.com/js/ewc/createEventScript.js"></script>

<script>
if (AJS.params.remoteUser === '') {
	window.location.replace("/display/EV/Dashboard");
}

</script>

Is in group
GroupNameconfluence-administrators,gsvlabs-admins,unt-admins
Actionwindow.location.replace("/display/UE/Dashboard");
IDisingroupfunc

Is in event cohost list
Actionwindow.location.replace("/display/EV/Dashboard");
IDisEventCohost

saveFormContainerINLINE

custom-buttonsaveFormButtonSave

flex-direction: column;questionContainerINLINEentryNameINLINEheight: auto !important;entryNameInputauto !importantINLINE

name

entryStartTimeINLINE

startDate

entryEndTimeINLINE

endDate

entryCatLocINLINEentryCategoryINLINE

category

entryLocationINLINE

e.g. San Francisco, CAlocation

entrySummaryINLINEentryProgramentryInputINLINE

program

entryAgendaentryInputINLINE

agenda

entryImageOrganizerentryInputINLINE

flex-direction: column; display: none;imageOrganizer

display: none !important; currentOrganizerINLINE

trueflex-direction: column; currentImageOrganizertrue

entryCollabSponsorINLINEentryCollaboratorsentryInputINLINE

cohosts

display-noneINLINE

rsvptrue

entryCollabSponsorINLINEflex-direction:row;entryInputINLINE

notify

display-noneINLINE

pageName

formIdtrue

RSVPCount

currentName

sequence

startDateTimestamp

endDateTimestamp

HTML
<script>
function addEventExistsGroup(event_exists_group) {
  jQuery.ajax({
    url: "/rest/scriptrunner/latest/custom/addGroup",
    headers: {
      "X-Atlassian-Token": "nocheck",
      "Content-type": "application/json",
    },
    type: "POST",
    dataType: "text",
    data: JSON.stringify({
      group: [event_exists_group],
    }),
    success: function (text) {
      console.log("Response: " + text);
    },
    error: function (err) {
      console.log("Response: it's not working. ", err);
    },
  }
	.questionContainer {
		padding: 12px;
		width: 88% !important;
		margin: 0 auto !important;
	}

	p.auto-cursor-target {
		width: 100% !important;
	}

	span.conf-macro.output-inline {
		width: 100%;
		margin: 7px 0px !important;
	}

	.confiFormsFormContent {
		padding: 0px;
	}

	input#i_sponsors {
		max-width: 100% !IMPORTANT;
		width: 100%;
	}

	div#orgupload {
		margin: 15px 0 0 0px !important;
	}

	a#saveFormButton {
		margin: 0 auto;
		width: 100%;
	}

	.saveFormContainer .my-button {
		margin: 0 auto;
		display: flex;
		text-align: center;
		align-items: center;
		justify-content: space-around;
	}

	.saveFormContainer {
		width: 100% !important;
	}

	.questionwrapper.question-mobile {
		display: flex;
		align-self: flex-start;
		margin-left: 6%;
	}
	div#entryStartTime .questionwrapper.question-mobile {
		height: auto !important;
	}
	div#entryEndTime .questionwrapper.question-mobile {
		height: auto !important;
	}
	.fileUploadContainer {
		min-width: 95%;
	}
	div#entrySponsors {
		width: 100% !important;
	}
}
</style>

<script type="text/javascript" src="https://gsvlabs-confluence-files.s3-us-west-2.amazonaws.com/js/ewc/createEventScript.js"></script>

<script>
if (AJS.params.remoteUser === '') {
	window.location.replace("/display/MSEV/Dashboard");
}
</script>
ConfiForms (FormView) Registrations Control
formNamecreateEvent
presetValuesnotify=true
embeddedtrue
HTML
<script>
/* Makes the fields for the dates larger */
$('#i_endDate').attr('style', '');
$('#i_startDate').attr('style', '');
</script>
<script>
$("#saveFormButton .my-button").on("click", function(){
	var original_name = $("#i_name").val();
	$("#i_currentName").val(original_name);
	$('.my-button').prop('disabled', true);
	$("button.my-create-dialog-create-button.aui-button.aui-button-primary.save-cf-btn").click();              
    $("#action-errors-confiform").waitUntilExists(function () {
		$('.my-button').prop('disabled', false);
		window.scrollTo({top: 0, behavior: 'smooth'});
     });
	return false;
});

</script>
<script>
// Adding Placeholder to Location Input Field
let locationPlaceholder = $('#i_location')[0];
locationPlaceholder.placeholder = "e.g. San Francisco, CA";
</script>
<script>
$("#i_RSVPCount").waitUntilExists(() => {
	$("#i_RSVPCount").val(0);
})

$("#i_sequence").waitUntilExists(() => {
	console.log("setting sequence val to 0");
	$("#i_sequence").val(0);
})
</script>

<script>
const calendar = {
  'January':'Jan',
  'February':'Feb',
  'March':'Mar',
  'April':'Apr',
  'May':'May',
  'June':'Jun',
  'July':'Jul',
  'August':'Aug',
  'September':'Sep',
  'October':'Oct',
  'November':'Nov',
  'December':'Dec'  
}

const formatDateLong = d => {
  const monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
  const dayNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];

  var hh = d.getHours(); 
  var m = d.getMinutes();
  var s = d.getSeconds();
  var dd = "am";
  var h = hh;
  if (h >= 12) {
    h = hh-12;
    dd = "pm";
  }
  if (h == 0) {
    h = 12;
  }
  m = m<10?"0"+m:m;
  s = s<10?"0"+s:s;

  var strTime = h+":"+m+" "+dd
  return dayNames[d.getDay()] + ", " + monthNames[d.getMonth()] + " " + d.getDate() + " " + d.getFullYear() + ", " + strTime;
}

</script>
HTML
<script>
$(window).on('load', function(){
	$("#uploadButton4").click(() => {
		$("#i_imageOrganizer").click();
	})
	$("#i_currentImageOrganizer").waitUntilExists(() => {
		setTimeout(function(){ 
        var currentimgorg = $('#i_currentImageOrganizer').val();
        if(currentimgorg !== ""){
			$( "#currentimgorg-insert" ).remove()
            var d4 = document.getElementById('uploadButton4');
            d4.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="currentimgorg-insert">${currentimgorg}</div>`);
        }
		}, 1200);

    });
	
	$("#i_imageOrganizer").change(function(){
    	$( "#currentimgorg-insert" ).remove()
    	var logo4 = document.getElementsByClassName("up-file")[0].value.split("\\").pop();
     
		var d4 = document.getElementById('uploadButton4');
		d4.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="currentimgorg-insert">${logo4}</div>`);
	});
});
</script>


Is in event cohost list
Actionwindow.location.replace("/display/MSEV/Dashboard");
IDisEventCohost

HTML
<script>
const round_obj = {
  NF: "National Finals",
  S1: "Semifinals 1",
  S2: "Semifinals 2",
  S3: "Semifinals 3",
  S4: "Semifinals 4",
  R1: "Round 1",
  SR: "Screening",
  S5: "Semifinals 5",
  S6: "Semifinals 6"
};

var country_obj = {"AF":"Afghanistan","AL":"Albania","DZ":"Algeria","AD":"Andorra","AO":"Angola","AG":"Antigua Barbuda","AR":"Argentina","AM":"Armenia","AW":"Aruba","AU":"Australia","AT":"Austria","AZ":"Azerbaijan","BS":"Bahamas","BH":"Bahrain","BD":"Bangladesh","BB":"Barbados","BY":"Belarus","BE":"Belgium","BZ":"Belize","BJ":"Benin","BM":"Bermuda","BT":"Bhutan","BO":"Bolivia","BQ":"Bonaire","BA":"Bosnia and Herzegovina","BW":"Botswana","BR":"Brazil","BN":"Brunei","BG":"Bulgaria","BF":"Burkina Faso","BI":"Burundi","KH":"Cambodia","CM":"Cameroon","CA":"Canada","CV":"CapeVerde","CF":"Central African Republic","TD":"Chad","CL":"Chile","CN":"China","TW":"ChineseTaipei","CO":"Colombia","KM":"Comoros","CD":"Congo Democratic Republic","CG":"Congo Republic of the","CR":"Costa Rica","HR":"Croatia","CU":"Cuba","CW":"Curacao","CY":"Cyprus","CZ":"Czech Republic","DK":"Denmark","DJ":"Djibouti","DM":"Dominica","DO":"Dominican Republic","TP":"East Timor","EC":"Ecuador","EG":"Egypt","SV":"El Salvador","GQ":"Equatorial Guinea","ER":"Eritrea","EE":"Estonia","SZ":"Eswatini","ET":"Ethiopia","FJ":"Fiji","FI":"Finland","FR":"France","GA":"Gabon","GM":"Gambia","GE":"Georgia","DE":"Germany","GH":"Ghana","GI":"Gibraltar","GP": "Global Pool", "GPT":  "Global Pool tGELF", "GR":"Greece","GL":"Greenland","GD":"Grenada","GT":"Guatemala","GN":"Guinea","GW":"Guinea-Bissau","GY":"Guyana","HT":"Haiti","HN":"Honduras","HU":"Hungary","IS":"Iceland","IN":"India","ID":"Indonesia","IQ":"Iraq","IE":"Ireland","IT":"Italy","CI":"Ivory Coast","JM":"Jamaica","JP":"Japan","JO":"Jordan","KZ":"Kazakhstan","KE":"Kenya","KI":"Kiribati","XK":"Kosovo","KW":"Kuwait","KG":"Kyrgyz Republic","LA":"Laos","LV":"Latvia","LB":"Lebanon","LS":"Lesotho","LR":"Liberia","LY":"Libya","LI":"Liechtenstein","LT":"Lithuania","LU":"Luxembourg","MG":"Madagascar","MW":"Malawi","MY":"Malaysia","MV":"Maldives","ML":"Mali","MT":"Malta","MH":"Marshall Islands","MR":"Mauritania","MU":"Mauritius","MX":"Mexico","FM":"Micronesia, Fed. Saint","MD":"Moldova","MC":"Monaco","MN":"Mongolia","ME":"Montenegro","MA":"Morocco","MZ":"Mozambique","MM":"Myanmar","NA":"Namibia","NR":"Nauru","NP":"Nepal","NL":"Netherlands","NZ":"New Zealand","NI":"Nicaragua","NE":"Niger","NG":"Nigeria","KP":"North Korea","MK":"North Macedonia","NO":"Norway","OM":"Oman","PK":"Pakistan","PW":"Palau","PS":"Palestine","PA":"Panama","PG":"Papua New Guinea","PY":"Paraguay","PE":"Peru","PH":"Philippines","PL":"Poland","PT":"Portugal","RO":"Romania","RU":"Russia","RW":"Rwanda","WS":"Samoa","BQSA":"Saba","SM":"San Marino","ST":"Sao Tome Principe","SA":"Saudi Arabia","SN":"Senegal","RS":"Serbia","SC":"Seychelles","SL":"Sierra Leone","SG":"Singapore","SK":"Slovakia","SI":"Slovenia","SB":"Solomon Islands","SO":"Somalia","ZA":"South Africa","KR":"South Korea","SS":"South Sudan","ES":"Spain","LK":"Sri Lanka","SEBQ":"Saint Eustatius","KN":"Saint Kitts Nevis","LC":"Saint Lucia","MF":"Saint Maarten","VC":"Saint Vincent and the Grenadines","SD":"Sudan","SR":"Suriname","SE":"Sweden","CH":"Switzerland","SY":"Syria","TJ":"Tajikistan","TZ":"Tanzania","TH":"Thailand","TG":"Togo","TO":"Tonga","TT":"Trinidad and Tobago","TN":"Tunisia","TR":"Turkey","TM":"Turkmenistan","TV":"Tuvalu","UG":"Uganda","UA":"Ukraine","AE":"United Arab Emirates","GB":"United Kingdom","US":"United States","USI":"United States Idea","UY":"Uruguay","UZ":"Uzbekistan","VU":"Vanuatu","VE":"Venezuela","VN":"Vietnam","YE":"Yemen","ZM":"Zambia","ZW":"Zimbabwe", "ZRAN": "Zranesia"}

</script>


HTML
<script>
// REDIRECTS USER TO EVENT ONE ALREADY EXISTS FOR COUNTRY AND ROUND IN URL
var country_code_check = getQueryVariableFromUrl("cc").toUpperCase();
var round_check = getQueryVariableFromUrl("round").toUpperCase();
jQuery.ajax({
  url:
    "/ajax/confiforms/rest/filter.action?pageId=50558996&f=createEvent&q=country:"+country_code_check+"%20AND%20round:"+round_check,
  headers: {
    "X-Atlassian-Token": "nocheck",
    "Content-type": "application/json",
  },
  type: "get",
  dataType: "json",
  success: function (data) {
    if (data.list.entry.length) {
      if (data.list.entry[0].fields.country === country_code_check && data.list.entry[0].fields.round === round_check) {
        window.location.replace("/display/MSEV/" + data.list.entry[0].fields.name)
      }
    } else {
      console.log("no event for this country/round")
    }
  },
  error: function (err) {
    console.log(err)
  },
})
</script>

<script>
$(document).ready(function () {
/*
var country_code = getQueryVariableFromUrl("cc");
var does_cc = country_code.toUpperCase();
var does_round = getQueryVariableFromUrl("round").toUpperCase();
if (!does_cc.includes("notfound")) {
	var roundName = round_obj[does_round];
	var countryName = country_obj[does_cc]+" ";
	var page_name = countryName + roundName;
	$('#i_pageName').val(page_name);
	$('select#i_country option[value="'+does_cc+'"]').prop('selected', 'selected').change();
	$('select#i_round option[value="'+does_round+'"]').prop('selected', 'selected').change();
	$('#i_countryCode').val(does_cc);
}
*/
})
</script>

<script>
console.log("first thing in no format");
var event_exists_group = "event-TEST";
var event_exists_group_arr = [event_exists_group];
// flags to check if event exists
var event_exists = false;

console.log(event_exists_group_arr, "HERE I AM");
// flag to check if event have been shown yet
var event_changed = false;

function addEventExistsGroup(event_exists_group) {
  jQuery.ajax({
    url: "/rest/scriptrunner/latest/custom/addGroup",
    headers: {
      "X-Atlassian-Token": "nocheck",
      "Content-type": "application/json",
    },
    type: "POST",
    dataType: "text",
    data: JSON.stringify({
      group: [event_exists_group],
    }),
    success: function (text) {
      console.log("Response: " + text);
    },
    error: function (err) {
      alert("Group has already been added");
    },
  });
}

function removeSemifinalExistsGroup(event_exists_group) {
  jQuery.ajax({
    url: "/rest/scriptrunner/latest/custom/removeGroup",
    headers: {
      "X-Atlassian-Token": "nocheck",
      "Content-type": "application/json",
    },
    type: "POST",
    dataType: "text",
    data: JSON.stringify({
      group: [event_exists_group],
    }),
    success: function (text) {
      console.log("Response: " + text);
    },
    error: function (err) {
      alert("Group has already been removed");
    },
  });
}

$("#createGroup").click(() => {
  console.log("clicked add button");
  addEventExistsGroup(event_exists_group);
});

$("#removeGroup").click(() => {
  console.log("clicked remove button");
  removeSemifinalExistsGroup(event_exists_group)
})
</script>


ConfiForms (FormView) Registrations Control
formNamecreateEvent
presetValuesnotify=true
embeddedtrue



saveFormContainerINLINE

custom-buttonsaveFormButtonSave




flex-direction: column;questionContainerINLINE



entryNameINLINE



entryNameInputINLINE


name





entryStartTimeINLINE


startDate




entryEndTimeINLINE


endDate




entryPrivateEvententryInputINLINE


privateEvent






entryCatLocINLINE



entryCategoryINLINE


category







entrySummaryINLINE



entryProgramentryInputINLINE


program




entryAgendaentryInputINLINE


agenda






entrySponsorsentryInputINLINE


sponsors




flex-direction:column;entrySponsorImagesINLINE




sponsorImage1INLINE
















entryImageOrganizerentryInputINLINE




flex-direction: column; display: none;imageOrganizer

display:none;currentOrganizerINLINE

trueflex-direction: column; display: none;currentImageOrganizertrue






entrybannerImageentryInputINLINE




flex-direction: column; display: none;bannerImage


display: none !important; currentBannerImageINLINE

trueflex-direction: column; currentBannerImagetrue





INLINEconfluence-administrators



entryOptionsINLINE








entryZoomAccountentryInputINLINE


zoomAccount




entryZoomPasswordentryInputINLINE


zoomPassword




entryZoomLinkentryInputINLINE


watchLiveEvent




entryStreamLinkentryInputINLINE


streamLink




entryRecordedLinkentryInputINLINE


recordedLink




entryMeetingIdentryInputINLINE


meetingId




entryMeetingPasswordentryInputINLINE


meetingPass




entryTopicIdentryInputINLINE


topicId




entryRTMPUrlentryInputINLINE


rtmpUrl




entryRTMPKeyentryInputINLINE


rtmpKey





entryJiraQueryentryInputINLINE


jiraQuery









entryCollabSponsorINLINE



entryCollaboratorsentryInputINLINE


cohosts




display-noneINLINE

rsvptrue






entryCollabSponsorINLINE



flex-direction:row;entryInputINLINE


notify






display: none;INLINE


flex-direction: column; display: none;sponsorimage1

display:none;currentSponsor1INLINE


trueflex-direction: column; display: none; currentSponsorimage1


flex-direction: column; display: none;sponsorimage2


display:none;currentSponsor2INLINE

trueflex-direction: column; display: none;currentSponsorimage2true


flex-direction: column; display: none;sponsorimage3


display:none;currentSponsor3INLINE

trueflex-direction: column; display: none;currentSponsorimage3true






display-noneINLINE

pageName

formIdtrue

RSVPCount

countryCode

font-size: var(--font-size-s); width: 100%;round

sequence

currentName

startDateTimestamp

endDateTimestamp

offline






HTML
<script>
/* Makes the fields for the dates larger */
$('#i_endDate').attr('style', '');
$('#i_startDate').attr('style', '');
</script>
<script>
$("#saveFormButton .my-button").on("click", function(){
	$('.my-button').prop('disabled', true);
	$("button.my-create-dialog-create-button.aui-button.aui-button-primary.save-cf-btn").click();              
    $("#action-errors-confiform").waitUntilExists(function () {
		$('.my-button').prop('disabled', false);
		window.scrollTo({top: 0, behavior: 'smooth'});
     });
	return false;
});
/*
$('#i_country').prop('disabled', true);
$('#i_round').prop('disabled', true);*/

</script>

<script>
$("#i_RSVPCount").waitUntilExists(() => {
	$("#i_RSVPCount").val(0);
})

$("#i_sequence").waitUntilExists(() => {
	console.log("setting sequence val to 0");
	$("#i_sequence").val(0);
})
</script>

<script>
const calendar = {
  'January':'Jan',
  'February':'Feb',
  'March':'Mar',
  'April':'Apr',
  'May':'May',
  'June':'Jun',
  'July':'Jul',
  'August':'Aug',
  'September':'Sep',
  'October':'Oct',
  'November':'Nov',
  'December':'Dec'  
}

const formatDateLong = d => {
  const monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
  const dayNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];

  var hh = d.getHours(); 
  var m = d.getMinutes();
  var s = d.getSeconds();
  var dd = "am";
  var h = hh;
  if (h >= 12) {
    h = hh-12;
    dd = "pm";
  }
  if (h == 0) {
    h = 12;
  }
  m = m<10?"0"+m:m;
  s = s<10?"0"+s:s;

  var strTime = h+":"+m+" "+dd
  return dayNames[d.getDay()] + ", " + monthNames[d.getMonth()] + " " + d.getDate() + " " + d.getFullYear() + ", " + strTime;
}

</script>


HTML
<script>
$(window).on('load', function(){
	$("#uploadButton1").click(() => {
		$("#i_sponsorimage1").click();
	})
	$("#i_currentSponsorimage1").waitUntilExists(() => {
		setTimeout(function(){
		console.log("Wait until exists starts");
        var currentsp1 = $('#i_currentSponsorimage1').val();
		console.log("CURRENT SP1 value", currentsp1);
        if(currentsp1 !== ""){
			$( "#s1upload-insert" ).remove()
			console.log("CURRENT SPONSOR IS NOT EMPTY");
            var d1 = document.getElementById('uploadButton1');
            d1.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="s1upload-insert">${currentsp1}</div>`);
        }
		}, 1200);
	});
	$("#i_sponsorimage1").change(function(){
    	$( "#s1upload-insert" ).remove()
    	var logo1 = document.getElementsByClassName("up-file")[2].value.split("\\").pop();
     
		var d1 = document.getElementById('uploadButton1');
		d1.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="s1upload-insert">${logo1}</div>`);
	});


	$("#uploadButton2").click(() => {
		$("#i_sponsorimage2").click();
	})
	$("#i_currentSponsorimage2").waitUntilExists(() => {
		setTimeout(function(){ 
        var currentsp2 = $('#i_currentSponsorimage2').val();
		console.log("currentsp2 value", currentsp2);
        if(currentsp2 !== ""){
			$( "#s2upload-insert" ).remove()
            var d2 = document.getElementById('uploadButton2');
            d2.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="s2upload-insert">${currentsp2}</div>`);
        }
		}, 1200);
    });
	
	$("#i_sponsorimage2").change(function(){
    	$( "#s2upload-insert" ).remove()
    	var logo2 = document.getElementsByClassName("up-file")[3].value.split("\\").pop();
     
		var d2 = document.getElementById('uploadButton2');
		d2.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="s2upload-insert">${logo2}</div>`);
	});

	$("#uploadButton3").click(() => {
		$("#i_sponsorimage3").click();
	})
	$("#i_currentSponsorimage3").waitUntilExists(() => {
		setTimeout(function(){ 
        var currentsp3 = $('#i_currentSponsorimage3').val();
		console.log("currentsp3 value", currentsp3);
        if(currentsp3 !== ""){
			$( "#s3upload-insert" ).remove()
            var d3 = document.getElementById('uploadButton3');
            d3.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="s3upload-insert">${currentsp3}</div>`);
        }
		}, 1200);

    });
	
	$("#i_sponsorimage3").change(function(){
    	$( "#s3upload-insert" ).remove()
    	var logo3 = document.getElementsByClassName("up-file")[4].value.split("\\").pop();
     
		var d3 = document.getElementById('uploadButton3');
		d3.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="s3upload-insert">${logo3}</div>`);
	});

	$("#uploadButton4").click(() => {
		$("#i_imageOrganizer").click();
	})
	$("#i_currentImageOrganizer").waitUntilExists(() => {
		setTimeout(function(){ 
        var currentimgorg = $('#i_currentImageOrganizer').val();
        if(currentimgorg !== ""){
			$( "#currentimgorg-insert" ).remove()
            var d4 = document.getElementById('uploadButton4');
            d4.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="currentimgorg-insert">${currentimgorg}</div>`);
        }
		}, 1200);

    });
	
	$("#i_imageOrganizer").change(function(){
    	$( "#currentimgorg-insert" ).remove()
    	var logo4 = document.getElementsByClassName("up-file")[0].value.split("\\").pop();
     
		var d4 = document.getElementById('uploadButton4');
		d4.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="currentimgorg-insert">${logo4}</div>`);
	});


	$("#uploadButton5").click(() => {
		$("#i_bannerImage").click();
	})
	$("#i_currentBannerImage").waitUntilExists(() => {
		setTimeout(function(){ 
        var currentBannerImage = $('#i_currentBannerImage').val();
        if(currentBannerImage !== ""){
			$( "#currentBannerImage-insert" ).remove()
            var d5 = document.getElementById('uploadButton5');
            d5.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="currentBannerImage-insert">${currentBannerImage}</div>`);
        }
		}, 1200);

    });
	
	$("#i_bannerImage").change(function(){
    	$( "#currentBannerImage-insert" ).remove()
    	var logo5 = document.getElementsByClassName("up-file")[1].value.split("\\").pop();
     
		var d5 = document.getElementById('uploadButton5');
		d5.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="currentBannerImage-insert">${logo5}</div>`);
	});

});
</script>

<script>
function checkCohosts(){
	var previousCohosts = "";
	var eventName = "";
	var entry_id = getQueryVariableFromUrl('entry_id');
	jQuery.ajax({
    url: `/ajax/confiforms/rest/filter.action?pageId=50558996&f=createEvent&q=id:${entry_id}`,
    type: "get",
    dataType: 'json',
    async: true,
    success: function (data) {
            console.log(data.list.entry[0].ownedBy);    
            previousCohosts = data.list.entry[0].ownedBy;
            eventName = data.list.entry[0].fields.name;
            var currentCohosts = $("#i_cohosts").val();
        
            var previousCohosts = previousCohosts.split(",")
            previousCohosts.shift();
            var currentCohosts = currentCohosts.split(",");
            console.log("currentCohosts", currentCohosts);
            console.log("previousCohosts", previousCohosts);
            if (currentCohosts.length > previousCohosts.length){
                var difference = $(currentCohosts).not(previousCohosts).get();
                console.log("diffStr", difference);
                analytics.track("cohostsAdded", {
                    "eventName": eventName,
                    "cohostEmail": difference.join(','),
                });
                
            }
            if (previousCohosts.length > currentCohosts.length){
                var difference = $(previousCohosts).not(currentCohosts).get();
                console.log("diffStr", difference);
                analytics.track("cohostsRemoved", {
                    "eventName": eventName,
                    "cohostEmail": difference.join(','),
                });
                
            }
        }
    })
    
}
</script>	 


ConfiForms Form Definition
additionalFormAdminsconfluence-users,morganstanley-users
formNamecreateEvent
allowReadstrue
exporttrue


nameEvent Nametext

currentNameCurrent Nameread_only

pageNamePage NamePlease use only alphanumeric character's for the Event Titletext^[A-Za-z0-9 ,_-]+$

imageEvent Imageimage/*falsefiletrue

typeEvent Typefalse[pt=Production Team|mp=Minimal Production|pe=Physical Event|]select

sponsorsSponsorstext

startDateStart Date30EEE, MMM d yyyy, h:mm a ztruedatetime

endDateEnd Date30EEE, MMM d yyyy, h:mm a ztruedatetime

categoryCategoryfalse[MP=Meetup|VE=Virtual Events|WR=Webinar|WS=Workshop|PD=Pitch Day|HH=Happy Hour|LD=Lunch / Dinner|]label;falsetruemulti


agendaAgendawysiwyg

programProgramwysiwyg

cohostsCo-Hoststrue[]multiuser

notifyNotify Cohoststruefalsecheckbox

offlineOffline Eventtruefalsecheckbox

privateEventPrivate Eventtruefalsecheckbox

createdPageCreated Pagepage

publishPublish Flagcheckbox

rsvpRSVP Listtrue[]multiuser

formIdForm Idread_only


countryCodeCountry Codetext

roundRoundfalse[NF=National Finals|S1=Semifinals 1|S2=Semifinals 2|S3=Semifinals 3|S4=Semifinals 4|R1=Round 1|SR=Screening|S5=Semifinals 5|]select



zoomAccountZoom Accounttruefalsetext

zoomPasswordZoom Passwordtruefalsetext

watchLiveEventWatch Live Eventtruefalsetext

streamLinkLive Stream Linktruefalsetext

recordedLinkRecorded Live Stream Linktruefalsetext

meetingIdMeeting IDtruefalsetext

meetingPassMeeting Passtruefalsetext

topicIdTopic IDtruefalsetext

rtmpUrlRTMP URLtruefalsetext

rtmpKeyRTMP Keytruefalsetext

jiraQueryJira Query for Startup Searchtruefalsetext


sponsorimage1Sponsor Imageimage/*falsefiletrue

deleteSponsorimage1Sponsor Imagetruefalsecheckboxtrue

currentSponsorimage1Current Sponsor Image 1trueread_only

!currentSponsorimage1:[empty]Show containertruecurrentSponsorimage1.currentSponsor1true

sponsorimage2Sponsor Imageimage/*falsefiletrue

currentSponsorimage2Current Sponsor Image 2trueread_only

!currentSponsorimage2:[empty]Show containertruecurrentSponsorimage2.currentSponsor2true

sponsorimage3Sponsor Imageimage/*falsefiletrue

currentSponsorimage3Current Sponsor Image 3trueread_only

!currentSponsorimage3:[empty]Show containertruecurrentSponsorimage3.currentSponsor3true

imageOrganizerOrgnaizer Imageimage/*falsefiletrue

currentImageOrganizerCurrent Organizer Imagetrueread_only

!currentImageOrganizer:[empty]Show containertruecurrentImageOrganizer.currentOrganizertrue

bannerImageBanner Imageimage/*falsefiletrue

currentBannerImageCurrent Banner Imagetrueread_only

!currentBannerImage:[empty]Show containertruecurrentBannerImage.currentBannerImagetrue

removeImage0Remove Image 0true[no=Remove|]radio_group

removeImage0:noaddImage1, removeImage1, leaderName2, leaderRole2, leaderLinkedin2addImage1=[empty]Reset valuetrueremoveImage0.add1true

removeImage0:yessponsorimage1document.getElementsByClassName("up-file")[0].value = "";Run custom JavaScripttrueremoveImage0.add1true

addImage1Add 2nd Iamgetrue[yes=Add Another Logo|]radio_group

removeImage1Remove Image 1true[no=Remove|]radio_group

addImage1:yesShow containertrueaddImage1.add1true

removeImage1:noaddImage1, removeImage1, leaderName2, leaderRole2, leaderLinkedin2addImage1=[empty]Reset valuetrueremoveImage1.add1true

formId:[empty]offline=yesSet valueoffline

confluence-users,morganstanley-usersRSVPCountRSVP Counttruenumberhidden


<!-- Page view count → 

confluence-users,morganstanley-userspageViewCountPage View Counttruenumberhidden


confluence-users,morganstanley-userssequenceSequencetruenumberhidden

startDateTimestampStart Date Timestamptruetext

endDateTimestampEnd Date Timestamptruetext

addImage2Add 2nd Imagetrue[yes=Add Another Logo|]radio_group

removeImage2Remove Iamge 2true[no=Remove|]radio_group

addImage2:yesShow containertrueaddImage2.add2true

removeImage2:noaddImage2, removeImage2, leaderName2, leaderRole2, leaderLinkedin2addImage1=[empty]Reset valuetrueremoveImage2.add1true

<!–Missing countryCode validation→

<!--

countryCode:NOTFOUNDCOMMENTOUTMissing country information - please select Create Event from the country dashboard and try again.countryCode:MISSINGValidation rulecountryCode

-->

<!--Load the current field values-->


<!--Load the current field values (ADMIN)-->

!formId:[empty]name=[entry.name]&pageName=[entry.pageName]&currentName=[entry.name]&currentImage=[entry.currentImage]&sponsors=[entry.sponsors]&agenda=[entry.agenda]&program=[entry.program]&cohosts=[entry.ownedBy]&createdPage=[entry.createdPage]&publish=[entry.publish]&country=[entry.country]&countryCode=[entry.countryCode]&round=[entry.round]&city=[entry.city]&eventType=[entry.eventType]&zoomAccount=[entry.zoomAccount]&zoomPassword=[entry.zoomPassword]&watchLiveEvent=[entry.watchLiveEvent]&streamLink=[entry.streamLink]&recordedLink=[entry.recordedLink]&meetingId=[entry.meetingId]&meetingPass=[entry.meetingPass]&topicId=[entry.topicId]&rtmpUrl=[entry.rtmpUrl]&rtmpKey=[entry.rtmpKey]&jiraQuery=[entry.jiraQuery]&currentSponsorimage1=[entry.sponsorimage1]&currentSponsorimage2=[entry.sponsorimage2]&currentSponsorimage3=[entry.sponsorimage3]&currentImageOrganizer=[entry.imageOrganizer]&currentBannerImage=[entry.bannerImage]&addImage1=[entry.addImage1]&removeImage1=[entry.removeImage1]&addImage2=[entry.addImage2]&removeImage2=[entry.removeImage2]&RSVPCount=[entry.RSVPCount]&startDateTimestamp=[entry.startDate]&endDateTimestamp=[entry.endDate]&offline=[entry.offline]&category=[entry.category.transform(id).asList]&location=[entry.location]&bannerImage=[entry.bannerImage]&privateEvent=[entry.privateEvent]id:[entry.formId]Lookup and set value

<!--Don't allow events in the past→


<!--Don't allow end date earlier than start date-->

endDate:<=[entry.startDate]Invalid date range - please ensure the end date is after the start date..Validation ruleendDate

<!--Add cohosts to ownedBy list on new entry-->

!cohosts:[empty] AND formId:[empty]Create ConfiForms EntryonCreatedentryId=[entry.id]&ownedBy=[entry.createdBy],[entry.cohosts.asList]


<!--Update cohosts to ownedBy list on existing entry-->

!cohosts:[empty] AND !formId:[empty]Create ConfiForms EntryonCreatedentryId=[entry.formId]&ownedBy=[entry.createdBy],[entry.cohosts.asList]


<!--Set current attachment name on new entry-->

formId:[empty]trueCreate ConfiForms EntryonCreatedentryId=[entry.id]&currentImage=[entry.image.asAttachment.displayTitle]


<!--Update the banner image if changed-->

!bannerImage:[empty] AND !formId:[empty]Create ConfiForms Entry25657553onCreatedentryId=[entry.formId]&bannerImage=[entry.bannerImage]&currentBannerImage=[entry.bannerImage]


<!--Update the organizer image if changed-->

!imageOrganizer
ConfiForms Form Definition
additionalFormAdminsconfluence-users,unt-users
formNamecreateEvent
allowReadstrue
exporttrue

nameEvent Nametext

currentNameCurrent Nametext

pageNamePage NamePlease use only alphanumeric character's for the Event Titletext^[A-Za-z0-9 ,_-]+$

imageEvent Imageimage/*falsefiletrue

typeEvent Typefalse[pt=Production Team|mp=Minimal Production|pe=Physical Event|]select

startDateStart Date30EEE, MMM d yyyy, h:mm a ztruedatetime

endDateEnd Date30EEE, MMM d yyyy, h:mm a ztruedatetime

categoryCategoryfalse[CF=Conference|ED=Executive Dinner|FD=Founders Dinner|LL=Lunch & Learn|MG=Meeting|MP=Meetup|PD=Pitch Day|RP=Reception|VE=Virtual Events|WR=Webinar|]label;falsetruemulti

locationLocationPlease enter a location for the eventfalse[CF=Conference|ED=Executive Dinner|FD=Founders Dinner|LL=Lunch & Learn|MG=Meeting|MP=Meetup|PD=Pitch Day|RP=Reception|VE=Virtual Events|WR=Webinar|]label;falsetruetexttrue

agendaAgendawysiwyg

programProgramwysiwygtrue

cohostsCo-Hostsmultiuser

notifyNotify Cohoststruefalsecheckbox

createdPageCreated Pagepage

publishPublish Flagcheckbox

rsvpRSVP Listtrue[]multiuser

formIdForm Idread_only

confluence-usersRSVPCountRSVP Counttruenumberhidden

confluence-userssequenceSequencetruenumberhidden

startDateTimestampStart Date Timestamptruetext

endDateTimestampEnd Date Timestamptruetext

imageOrganizerOrgnaizer Imageimage/*falsefiletrue

currentImageOrganizerCurrent Organizer Imagetrueread_only

!currentImageOrganizer:[empty]Show containertruecurrentImageOrganizer.currentOrganizertrue

<!--Load the current field values-->

!formId:[empty] AND _user.userInSecurityGroup(confluence-administrators):falsename=[entry.name]&pageName=[entry.pageName]&currentName=[entry.currentName]&currentImage=[entry.currentImage]&agenda=[entry.agenda]&program=[entry.program]&cohosts=[entry.ownedBy]&createdPage=[entry.createdPage]&publish=[entry.publish]&RSVPCount=[entry.RSVPCount]&startDateTimestamp=[entry.startDate]&endDateTimestamp=[entry.endDate]&currentImageOrganizer=[entry.imageOrganizer]&location=[entry.location]&category=[entry.category.transform(id).asList]id:[entry.formId] AND ownedBy:[entry._user]Lookup and set value

<!--Load the current field values (ADMIN)-->

!formId:[empty] AND _user.userInSecurityGroup(confluence-administrators):truename=[entry.name]&pageName=[entry.pageName]&currentName=[entry.currentName]&currentImage=[entry.currentImage]&agenda=[entry.agenda]&program=[entry.program]&cohosts=[entry.ownedBy]&createdPage=[entry.createdPage]&publish=[entry.publish]&RSVPCount=[entry.RSVPCount]&startDateTimestamp=[entry.startDate]&endDateTimestamp=[entry.endDate]&currentImageOrganizer=[entry.imageOrganizer]&location=[entry.location]&category=[entry.category.transform(id).asList]id:[entry.formId]Lookup and set value

<!--Don't allow end date earlier than start date-->

endDate:<=[entry.startDate]Invalid date range - please ensure the end date is after the start date..Validation ruleendDate

<!--Add cohosts to ownedBy list on new entry-->

!cohosts:[empty] AND formId:[empty]Create ConfiForms EntryonCreatedentryId=[entry.id]&ownedBy=[entry.createdBy],[entry.cohosts.asList]

<!--Update cohosts to ownedBy list on existing entry-->

!cohosts:[empty] AND !formId:[empty]Create ConfiForms Entry25657553onCreatedentryId=[entry.formId]&ownedByimageOrganizer=[entry.imageOrganizer.createdBy],asAttachment.displayTitle]&currentImageOrganizer=[entry.imageOrganizer.cohostsasAttachment.asListdisplayTitle]


<!--Update the sponsor 1 image if changed--Update currentName from currentName on existing entry→

!currentName=name

>

!sponsorimage1:[empty] AND !formId:[empty]Create ConfiForms Entry25657553onCreatedentryId=[entry.formId]&sponsorimage1=[entry.sponsorimage1.asAttachment.displayTitle]&currentNamecurrentSponsorimage1=[entry.currentNamesponsorimage1.asAttachment.displayTitle]


<!--Update the organizer sponsor 2 image if changed-->

!imageOrganizersponsorimage2:[empty] AND !formId:[empty]Create ConfiForms Entry25657553onCreatedentryId=[entry.formId]&imageOrganizersponsorimage2=[entry.imageOrganizersponsorimage2.asAttachment.displayTitle]&currentImageOrganizercurrentSponsorimage2=[entry.imageOrganizersponsorimage2.asAttachment.displayTitle]


<!--Set current attachment name on new entryUpdate the sponsor 3 image if changed-->

!sponsorimage3:[empty] AND !formId:[empty] AND PEANUTStrueCreate ConfiForms Entry25657553onCreatedentryId=[entry.formId]&sponsorimage3=[entry.sponsorimage3.asAttachment.iddisplayTitle]& currentImageOrganizer = imageOrganizercurrentSponsorimage3=[entry.sponsorimage3.asAttachment.displayTitle]


<!--Update fields upon edit-->

!formId:[empty]Create ConfiForms EntryonCreatedentryId=[entry.formId]&name=[entry.name]&currentNamepageName=[entry.currentNamepageName]&pageNamecurrentName=[entry.pageNamename]&currentImage=[entry.currentImage]&sponsors=[entry.sponsors]&startDate=[entry.startDate]&endDate=[entry.endDate]&agenda=[entry.agenda]&program=[entry.program]&cohosts=[entry.ownedBy]&createdPage=[entry.createdPage]&publish=[entry.publish]&RSVPCountcountry=[entry.country]&countryCode=[entry.countryCode]&round=[entry.RSVPCountround]&locationcity=[entry.locationcity]&categoryeventType=[entry.category]createdBy:eventType]&zoomAccount=[entry._user]createEvent:48010490

<!--Redirect on update-->

!formId:[empty]Redirect to URLonCreated/display/UE/zoomAccount]&zoomPassword=[entry.pageName]

<!-- Create group when event is created send analytics Event-->

formId:[empty]Run JavaScriptonCreated

<!–TODO - Set page name from title→

formId:[empty]trueCreate ConfiForms EntryonCreatedentryIdzoomPassword]&watchLiveEvent=[entry.idwatchLiveEvent]&pageNamestreamLink=[entry.name]

<!–Create new page-->

formId:[empty]Create PageonCreatedstreamLink]&recordedLink=[entry.pageName]eventPCid:recordedLink]&meetingId=[entry.id]createEvent1publisherPublish@selfpublisherPublishtrueINLINEAre you sure you want to publish this event? It will be visible to all users platform

publishpublish flagcheckbox

formIdform idread_only

Update ConfiForms entries by filteronCreatedpublish=trueid:[entry.id]createEvent:48010490publishecUnpublish@selfpublishecUnpublishtrueINLINEAre you sure you want to un-publish this event? It will be hidden to all non-admin users on the platform

publishpublish flagcheckbox

formIdform idread_only

Update ConfiForms entries by filteronCreatedpublish=falseid:[entry.id]createEvent:48010490f

fileAttachfileAttachfile

eventFileNameeventFileNametext

eventTitleEvent Titletext

dtWhen30EEE, MMM d yyyy, h:mm a zdatetimeinterval

eventDescriptionEvent Descriptiontextarea

messageBodyICSMessage Bodyhtml

id:fileAttachHide field

recipientRecipienttext

titleTitletext

sequenceSequencetext

trueINLINECreate Attachment[entry.id.asEntryRef(entry.eventFileName)].icsonCreatedfileAttachtext/calendarSend EmailUNT Murphy Center Passport<product@theonevalley.com>onCreated[entry.id.asEntryRef(entry.title)][entry.id.asEntryRef(entry._user)]

messageBodyICS

fileAttach

fRemoveSaveRemove

fileAttachRemovefileAttachRemovefile

eventFileNameRemoveeventFileNameRemovetext

eventTitleRemoveEvent Title Removetext

dtRemoveWhenRemove30EEE, MMM d yyyy, h:mm a zdatetimeinterval

eventDescriptionRemoveEvent Description Removetextarea

messageBodyICSRemoveMessage Body Removehtml

id:fileAttachRemoveHide field

recipientRemoveRecipient Removetext

titleRemoveTitle Removetext

sequenceRemoveSequence Removetext

trueINLINECreate Attachment[entry.id.asEntryRef(entry.eventFileNameRemove)].icsonCreatedfileAttachRemovetext/calendarSend EmailUNT Murphy Center Passport<product@theonevalley.com>onCreated[entry.id.asEntryRef(entry.titleRemove)][entry.id.asEntryRef(entry._user)]

messageBodyICSRemove

fileAttachRemove

fUpdateSaveUpdate

fileAttachUpdatefileAttachUpdatefile

eventFileNameUpdateeventFileNameUpdatetext

eventTitleUpdateEvent Title Updatetext

dtUpdateWhenUpdate30EEE, MMM d yyyy, h:mm a zdatetimeinterval

eventDescriptionUpdateEvent Description Updatetextarea

messageBodyICSUpdateMessage Body Updatehtml

id:fileAttachUpdateHide field

recipientUpdateRecipient Updatetext

titleUpdateTitle Updatetext

sequenceUpdateSequence Updatetext

trueINLINECreate Attachment[entry.id.asEntryRef(entry.eventFileNameUpdate)].icsonCreatedfileAttachUpdatetext/calendarSend EmailUNT Murphy Center Passport<product@theonevalley.com>onCreated[entry.id.asEntryRef(entry.titleUpdate)][entry.id.asEntryRef(entry.recipientUpdate)]

messageBodyICSUpdate

fileAttachUpdate

[entry.id.asEntryRef(entry.id)]

removeFromWatchlist()CancelunregisterButtonOkThis event has been removed from your watchlist.Are you sure you want to remove this event from your Watchlist?.unregister-button

updateGuestCalendars()CancelupdateGuestCalendarsButtonOkAn email has been sent to the event guest list with the updated calendar invite and event information!This will send an email to everyone on the guest list with an updated calendar invitation!.update-rsvp-button

removeEvent()CanceldeleteEventOkThis event has been removed.Are you sure you want to remove this event?.deleteButton

<!--Redirect new entry-->

formId:[empty]Redirect to URLonCreated/display/UE/[entry.pageName]

<!–Update entry with created page url-->

formId:[empty]Create ConfiForms EntryonCreatedentryId=[entry.id]&createdPage=${iftttResult_PC.id}

<!-- Copy Organizer image to attachments bank -->

!imageOrganizer:[empty]Copy Attachment[entry.createdPage]onCreated[entry.imageOrganizer.asAttachment.id]

<!–Update entry with created page update url-->

!currentName:[entry.name] AND !currentName:[empty]Create ConfiForms EntryonCreatedentryId=[entry.id]&createdPage=${iftttResult_PCU.id}

<!--Delete update entry reference-->

!formId:[empty]Delete ConfiForms EntryonCreatedid:[entry.id]5

<!--Send email to new co-hosts-->

notify:true AND !cohosts:[empty]Send EmailUNT Murphy Center Passport<product@theonevalley.com>onCreatedUpdates made to the [entry.name] event[entry.cohosts.asList]

Hello,

You receiving this message because you are listed as a cohost on the [entry.name] event.

To view changes, edit, or publish the event, go <a href="[entry.createdPage.urlPath]">here</a>.

Thank you,

UNT Murphy Center Passport Team

HTML
<script>
$(".jqte_editor").append("<p id='agendaText'>Tell us about your Event here...</p>");
</script>
HTML
<script>
  //GET AND SET FORM ID TO CONFIFORMS FIELD FROM URL
    function getParameter(paramName) {
      var searchString = window.location.search.substring(1),
          i, val, params = searchString.split("&");
      for (i=0;i<params.length;i++) {
        val = params[i].split("=");
        if (val[0] == paramName) {
            console.log("val[1]", val[1]);
          return val[1];
        }
    console.log(paramName);
      }
      return null;
    }
  var formIdInput  = document.getElementById('i_formId');
  console.log("formIdInput", formIdInput);
  formIdInput.value = getParameter('entry_id');
  console.log("formIdInput after", formIdInput);
  //HIDE CONFIFORMS DROPDOWN FOR NON ADMINS
  if (!(AJS.params.isConfluenceAdmin)) {
     $('.aui-button.aui-style-default.aui-dropdown2-trigger').hide()
  }
</script>
<script>
$(document).ready(function () {
$(".startDateLabel").text("Start Date (Time Zone: " + Intl.DateTimeFormat().resolvedOptions().timeZone + ")");
$(".startEndLabel").text("End Date (Time Zone: " + Intl.DateTimeFormat().resolvedOptions().timeZone + ")");
});
</script>
HTML
<script>
function getQueryVariableFromUrl(variable){
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if(pair[0] == variable){return pair[1];}
    }
       return(false);
}

var entry_id = getQueryVariableFromUrl('entry_id');
var startDate;
var startDateLocalTime = '';
var startDateFixed = '';
var endDate;
var endDateLocalTime = '';
var endDateFixed = '';

const getTimeStamps = async (entry_id) => {
  let eventData = await jQuery.ajax({
    url: '/ajax/confiforms/rest/filter.action?pageId=48010490&f=createEvent&q=id:' + entry_id, 
    type: "get", 
    dataType: 'json', 
    async: true
  }).then(res => res);
  return eventData;
}

const formatDates = async (startDateLocalTime, endDateLocalTime) => {
  for (var month in calendar) {
    if (startDateLocalTime.includes(month)) {
      console.log("about to do start Date Fixed")
      startDateFixed = `${startDateLocalTime.replace(month, calendar[month])} ${new Date().toString().match(/([-\+][0-9]+)\s/)[1]}`;
      console.log("did start Date Fixed")
    }

    if (endDateLocalTime.includes(month)) {
      console.log("about to do end Date Fixed")
      endDateFixed = `${endDateLocalTime.replace(month, calendar[month])} ${new Date().toString().match(/([-\+][0-9]+)\s/)[1]}`;
      console.log("did end Date Fixed")
    }
  }
}

async function formatDateLong2(d) {
  const monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
  const dayNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];

  var hh = d.getHours(); 
  var m = d.getMinutes();
  var s = d.getSeconds();
  var dd = "am";
  var h = hh;
  if (h >= 12) {
    h = hh-12;
    dd = "pm";
  }
  if (h == 0) {
    h = 12;
  }
  m = m<10?"0"+m:m;
  s = s<10?"0"+s:s;

  var strTime = h+":"+m+" "+dd
  return dayNames[d.getDay()] + ", " + monthNames[d.getMonth()] + " " + d.getDate() + " " + d.getFullYear() + ", " + strTime;
}

$("#i_startDateTimestamp").waitUntilExists(() => {
  getTimeStamps(entry_id).then((data) => {
    startDate = new Date(data.list.entry[0].fields.startDate);
    endDate = new Date(data.list.entry[0].fields.endDate);

    formatDateLong2(startDate).then((startDateFormatted) => {
      startDateLocalTime = startDateFormatted;
      formatDateLong2(endDate).then((endDateFormatted) => {
        endDateLocalTime = endDateFormatted;
        formatDates(startDateLocalTime, endDateLocalTime).then(() => {
          $("#i_startDate").val(startDateFixed);
          $("#i_endDate").val(endDateFixed);
        })
      })
    })
  })
})
</script>
HTML
<script type="text/javascript" src="https://gsvlabs-confluence-files.s3-us-west-2.amazonaws.com/js/ewc/eventsCreateEventScript.js"></script>

<script>
/*$(document).ready(() => {
  $("#i_name").keydown(function(e){
    var ingnore_key_codes = [55];
    if ($.inArray(e.keyCode, ingnore_key_codes) >= 0){
      e.preventDefault();
    }
  });

  $("#i_agenda").keydown(function(e){
    var ingnore_key_codes = [55];
    if ($.inArray(e.keyCode, ingnore_key_codes) >= 0){
      e.preventDefault();
    }
  });

  $("#i_program").keydown(function(e){
    var ingnore_key_codes = [55];
    if ($.inArray(e.keyCode, ingnore_key_codes) >= 0){
      e.preventDefault();
    }
  });

  $("#i_startDate").keydown(function(e){
    var ingnore_key_codes = [55];
    if ($.inArray(e.keyCode, ingnore_key_codes) >= 0){
      e.preventDefault();
    }
  });

  $("#i_endDate").keydown(function(e){
    var ingnore_key_codes = [55];
    if ($.inArray(e.keyCode, ingnore_key_codes) >= 0){
      e.preventDefault();
    }
  });

  $("#s2id_autogen1").keydown(function(e){
    var ingnore_key_codes = [55];
    if ($.inArray(e.keyCode, ingnore_key_codes) >= 0){
      e.preventDefault();
    }
  });
});*/
</script>
meetingId]&meetingPass=[entry.meetingPass]&topicId=[entry.topicId]&rtmpUrl=[entry.rtmpUrl]&rtmpKey=[entry.rtmpKey]&jiraQuery=[entry.jiraQuery]&currentSponsorimage1=[entry.sponsorimage1]&currentSponsorimage2=[entry.sponsorimage2]&currentSponsorimage3=[entry.sponsorimage3]&currentImageOrganizer=[entry.imageOrganizer]&currentBannerImage=[entry.bannerImage]&addImage1=[entry.addImage1]&removeImage1=[entry.removeImage1]&addImage2=[entry.addImage2]&removeImage2=[entry.removeImage2]&RSVPCount=[entry.RSVPCount]&category=[entry.category]&location=[entry.location]&privateEvent=[entry.privateEvent]createdBy:[entry._user]createEvent:50558996


<!--Redirect new entry-->

formId:[empty]Redirect to URLonCreated/display/MSEV/[entry.pageName]


<!--Redirect on update-->

!formId:[empty]Redirect to URLonCreated/display/MSEV/[entry.pageName]


<!-- Create group when event is created send analytics Event-->

formId:[empty]Run JavaScriptonCreated




!formId:[empty]Run JavaScriptonCreated



!cohosts=[entry.cohosts]checkCohosts();Run custom JavaScriptcohosts

<!–Create new page-->

formId:[empty]Create PageonCreated[entry.pageName]eventPC



id:[entry.id]createEvent1



publisher


Publish@selfpublisherPublishtrueINLINEAre you sure you want to publish this event? It will be visible to all users on the Morgan Stanley Platform!


publishpublish flagcheckbox

formIdform idread_only

Update ConfiForms entries by filteronCreatedpublish=trueid:[entry.id]createEvent:50558996




publishec


Unpublish@selfpublishecUnpublishtrueINLINEAre you sure you want to un-publish this event? It will not be visible to all users on the Morgan Stanley Platform!


publishpublish flagcheckbox

formIdform idread_only

Update ConfiForms entries by filteronCreatedpublish=falseid:[entry.id]createEvent:50558996




upload

fileAttachupfileAttachupfile

eventFileNameupeventFileNameuptext

eventTitleupEvent Titleuptext

urlTitleupURL Titleuptext

dtupWhenup30EEE, MMM d yyyy, h:mm a zdatetimeinterval

eventDescriptionupEvent Descriptionuptextarea

messageBodyICSupMessage Bodyuphtml

id:fileAttachHide field

recipientupRecipientuptext

titleupTitleuptext

sequenceupSequenceuptext

trueINLINE



Create Attachment[entry.id.asEntryRef(entry.eventFileNameup)].icsonCreatedfileAttachuptext/calendar




Send EmailMorgan Stanley <devops@theonevalley.com>onCreated[entry.id.asEntryRef(entry.titleup)][entry.id.asEntryRef(entry.recipientup)]

messageBodyICSup

fileAttachup



f

fileAttachfileAttachfile

eventFileNameeventFileNametext

eventTitleEvent Titletext

urlTitleURL Titletext

dtWhen30EEE, MMM d yyyy, h:mm a zdatetimeinterval

eventDescriptionEvent Descriptiontextarea

messageBodyICSMessage Bodyhtml

id:fileAttachHide field

recipientRecipienttext

titleTitletext

sequenceSequencetext

trueINLINE



Create Attachment[entry.id.asEntryRef(entry.eventFileName)].icsonCreatedfileAttachtext/calendar




Send EmailMorgan Stanley <devops@theonevalley.com>onCreated[entry.id.asEntryRef(entry.title)][entry.id.asEntryRef(entry._user)]

messageBodyICS

fileAttach



fRemoveSaveRemove

fileAttachRemovefileAttachRemovefile

eventFileNameRemoveeventFileNameRemovetext

eventTitleRemoveEvent Title Removetext

urlTitleRemoveURL Title Removetext

dtRemoveWhenRemove30EEE, MMM d yyyy, h:mm a zdatetimeinterval

eventDescriptionRemoveEvent Description Removetextarea

messageBodyICSRemoveMessage Body Removehtml

id:fileAttachRemoveHide field

recipientRemoveRecipient Removetext

titleRemoveTitle Removetext

sequenceRemoveSequence Removetext

trueINLINE



Create Attachment[entry.id.asEntryRef(entry.eventFileNameRemove)].icsonCreatedfileAttachRemovetext/calendar




Send EmailMorgan Stanley <devops@theonevalley.com>onCreated[entry.id.asEntryRef(entry.titleRemove)][entry.id.asEntryRef(entry._user)]

messageBodyICSRemove

fileAttachRemove



fUpdateSaveUpdate

fileAttachUpdatefileAttachUpdatefile

eventFileNameUpdateeventFileNameUpdatetext

eventTitleUpdateEvent Title Updatetext

urlTitleUpdateURL Title Updatetext

dtUpdateWhenUpdate30EEE, MMM d yyyy, h:mm a zdatetimeinterval

eventDescriptionUpdateEvent Description Updatetextarea

messageBodyICSUpdateMessage Body Updatehtml

id:fileAttachUpdateHide field

recipientUpdateRecipient Updatetext

titleUpdateTitle Updatetext

sequenceUpdateSequence Updatetext

trueINLINE



Create Attachment[entry.id.asEntryRef(entry.eventFileNameUpdate)].icsonCreatedfileAttachUpdatetext/calendar




Send EmailMorgan Stanley <devops@theonevalley.com>onCreated[entry.id.asEntryRef(entry.titleUpdate)][entry.id.asEntryRef(entry.recipientUpdate)]

messageBodyICSUpdate

fileAttachUpdate


[entry.id.asEntryRef(entry.id)]

removeFromWatchlist()CancelunregisterButtonOkThis event has been removed from your watchlist.Are you sure you want to remove this event from your Watchlist?.unregister-button

updateGuestCalendars()CancelupdateGuestCalendarsButtonOkAn email has been sent to the event guest list with the updated calendar invite and event information!Add a message for your guests - This will send an email to everyone on the guest list with an updated calendar invitation!.update-rsvp-button

removeEvent()CanceldeleteEventOkThis event has been removed.Are you sure you want to remove this event?.deleteButton

uploadGuestListRSVP()CanceluploadGuestCalendarsButtonsendUploadGuestEmail()morganstanleyOkAn email has been sent to the event guest list with a calendar invite and event information!Send InvitesAdd users that you would like invite to this event. Use a comma separated format e.g.: johnsmith@example.com, janedoe@example.com.upload-rsvp-button


<!--Send email to smith on page creation-->

<!--

formId:asdfSend EmailSmith <smith@theonevalley.com<;onCreatedACTION REQUIRED - New Event Created - [entry.pageName]SEESG@gsvlabs.com



-->

<!–Update entry with created page url-->

formId:[empty]Create ConfiForms EntryonCreatedentryId=[entry.id]&createdPage=${iftttResult_PC.id}


<!–Update entry with created page update url-->

!currentName:[entry.name] AND !currentName:[empty]Create ConfiForms EntryonCreatedentryId=[entry.id]&createdPage=${iftttResult_PCU.id}


<!-- Copy Banner Image to attachments bank -->

!bannerImage:[empty]Copy Attachment[entry.pageName]onCreated[entry.bannerImage.asAttachment.id]


<!-- Copy Organizer image to attachments bank -->

!imageOrganizer:[empty]Copy Attachment[entry.createdPage]onCreated[entry.imageOrganizer.asAttachment.id]


<!--Copy Sponsor 1 image to attachments bank-->

!sponsorimage1:[empty]Copy Attachment[entry.createdPage]onCreated[entry.sponsorimage1.asAttachment.id]


<!--Copy Sponsor 2 image to attachments bank-->

!sponsorimage2:[empty]Copy Attachment[entry.createdPage]onCreated[entry.sponsorimage2.asAttachment.id]


<!--Copy Sponsor 3 image to attachments bank-->

!sponsorimage3:[empty]Copy Attachment[entry.createdPage]onCreated[entry.sponsorimage3.asAttachment.id]


<!--Delete update entry reference-->

!formId:[empty]Delete ConfiForms EntryonCreatedid:[entry.id]5


<!--Send email to new co-hosts-->

notify:true AND !cohosts:[empty]Send EmailMorgan Stanley <smith@theonevalley.com>onCreatedUpdates made to the [entry.name] event[entry.cohosts.asList]

Hello,

You receiving this message because you are listed as a cohost on the [entry.name] event.

To view changes, edit, or publish the event, go <a href="[entry.createdPage.urlPath]">here</a>.


Thank you,

Draper Competition Team



HTML
<script>
$(".jqte_editor").append("<p id='agendaText'>Tell us about your Event here...</p>");
</script>


HTML
<script>
  //GET AND SET FORM ID TO CONFIFORMS FIELD FROM URL
    function getParameter(paramName) {
      var searchString = window.location.search.substring(1),
          i, val, params = searchString.split("&");
      for (i=0;i<params.length;i++) {
        val = params[i].split("=");
        if (val[0] == paramName) {
            console.log("val[1]", val[1]);
          return val[1];
        }
    console.log(paramName);
      }
      return null;
    }
  var formIdInput  = document.getElementById('i_formId');
  console.log("formIdInput", formIdInput);
  formIdInput.value = getParameter('entry_id');
  console.log("formIdInput after", formIdInput);
  //HIDE CONFIFORMS DROPDOWN FOR NON ADMINS
  if (!(AJS.params.isConfluenceAdmin)) {
     $('.aui-button.aui-style-default.aui-dropdown2-trigger').hide()
  }
</script>
<script>
$(document).ready(function () {
$(".startDateLabel").text("Start Date (Time Zone: " + Intl.DateTimeFormat().resolvedOptions().timeZone + ")");
$(".startEndLabel").text("End Date (Time Zone: " + Intl.DateTimeFormat().resolvedOptions().timeZone + ")");
});
</script>


HTML
<script>
var entry_id = getQueryVariableFromUrl('entry_id');
var startDate;
var startDateLocalTime = '';
var startDateFixed = '';
var endDate;
var endDateLocalTime = '';
var endDateFixed = '';

const getTimeStamps = async (entry_id) => {
  let eventData = await jQuery.ajax({
    url: `/ajax/confiforms/rest/filter.action?pageId=${AJS.params.pageId}&f=createEvent&q=id:${entry_id}`, 
    type: "get", 
    dataType: 'json', 
    async: true
  }).then(res => res);
  return eventData;
}

const formatDates = async (startDateLocalTime, endDateLocalTime) => {
  for (var month in calendar) {
    if (startDateLocalTime.includes(month)) {
      console.log("about to do start Date Fixed")
      startDateFixed = `${startDateLocalTime.replace(month, calendar[month])} ${new Date().toString().match(/([-\+][0-9]+)\s/)[1]}`;
      console.log("did start Date Fixed")
    }

    if (endDateLocalTime.includes(month)) {
      console.log("about to do end Date Fixed")
      endDateFixed = `${endDateLocalTime.replace(month, calendar[month])} ${new Date().toString().match(/([-\+][0-9]+)\s/)[1]}`;
      console.log("did end Date Fixed")
    }
  }
}

async function formatDateLong2(d) {
  const monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
  const dayNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];

  var hh = d.getHours(); 
  var m = d.getMinutes();
  var s = d.getSeconds();
  var dd = "am";
  var h = hh;
  if (h >= 12) {
    h = hh-12;
    dd = "pm";
  }
  if (h == 0) {
    h = 12;
  }
  m = m<10?"0"+m:m;
  s = s<10?"0"+s:s;

  var strTime = h+":"+m+" "+dd
  return dayNames[d.getDay()] + ", " + monthNames[d.getMonth()] + " " + d.getDate() + " " + d.getFullYear() + ", " + strTime;
}

$("#i_startDateTimestamp").waitUntilExists(() => {
  getTimeStamps(entry_id).then((data) => {
    startDate = new Date(data.list.entry[0].fields.startDate);
    endDate = new Date(data.list.entry[0].fields.endDate);

    formatDateLong2(startDate).then((startDateFormatted) => {
      startDateLocalTime = startDateFormatted;
      formatDateLong2(endDate).then((endDateFormatted) => {
        endDateLocalTime = endDateFormatted;
        formatDates(startDateLocalTime, endDateLocalTime).then
HTML
<script>
$("#i_addStartup1-yes").click(() => {
  var y = $(window).scrollTop();  
  setTimeout(function(){$(window).scrollTop(y+700)},300);
})

$("#i_addStartup2-yes").click(() => {
  var y = $(window).scrollTop();  
  setTimeout(function(){$(window).scrollTop(y+700)},300);
})

$("#i_addStartup3-yes").click(() => {
  var y = $(window).scrollTop();  
  setTimeout(function(){$(window).scrollTop(y+700)},300);
})

$("#i_addStartup4-yes").click(() => {
  var  y = $(window).scrollTop();  
  setTimeout(function(){$(window"#i_startDate").scrollTopval(y+700)},300);
})

startDateFixed);
          $("#i_addStartup5-yesendDate").clickval((endDateFixed) => {;
        })
  var  y = $(window).scrollTop();})
    })
  setTimeout(function(){$(window).scrollTop(y+700)},300);
})
</script>


HTML
<script>

$("#i_addStartup6-yes").click(() => {
  var y = $(window).scrollTop();  
  setTimeout(function(){$(window).scrollTop(y+700)},300);
})

$("#i_addStartup7-yes").click(() => {
  var y = $(window).scrollTop();  
  setTimeout(function(){$(window).scrollTop(y+700)},300);
})

$("#i_addStartup8-yes").click(() => {
  var y = $(window).scrollTop();  
  setTimeout(function(){$(window).scrollTop(y+700)},300);
})

$("#i_addStartup9-yes").click  // set page name as event name only on event creation
  if (getQueryVariableFromUrl('entry_id') === 'notfound') {
    $("#i_name").change(function () {
      $("#i_pageName").val($("#i_name").val());
    });

    // extra precaution - set page name as event name
    $(document).mousemove(function (event) {
      $("#i_pageName").val($("#i_name").val());
    });
  }
</script>

<script>
$("#judging-admin-only").waitUntilExists(() => {
  varif y(isAdmin = $(window).scrollTop();  
  setTimeout(function(){$(window).scrollTop(y+700)},300);
})

$("#i_addStartup10-yes").click|| isJudgingAdmin) {
    $("#judging-admin-only").toggleClass('display-none');
  }
});
$("#admin-only").waitUntilExists(() => {
  if (isAdmin) {
 var y = $(window"#admin-only").scrollToptoggleClass('display-none');  
  setTimeout(function(){$(window).scrollTop(y+700)},300);
});
</script>


HTML
<script type="text/javascript" src="https://gsvlabs-confluence-files.s3-us-west-2.amazonaws.com/js/ewc/eventsCreateEventScript.js"></script>