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/EWC/eventsPlatformStyleesheetEWC.css">



<style>
.currentOrganizerdisableChatContainer {
	display    height: none14px !important;
}
div#uploadButton4 {
	background: var(--cb-outline);
	font-family: unset;
	color: black    display: flex;
    margin: 8px 0;
}
textarea#iinput#i_locationdisableChat {
    backgroundposition: unsetrelative;
}
input#i_location {
    minz-widthindex: 100%1;
}

div#entryLocationinput#i_topicId {
    displaywidth: flex;10%;
}
input#i_notify {
    flexz-directionindex: 0 column!important;
}
div#select2-droplabel {
	background-image: unset !important;
	background: white !important;
}
#main-content {
background-image: unset    color: var(--primary-color);
    border: 1px solid var(--s-tab-outline) !important;
}
.my-button {
background-image: unset !important;
}
div.display-none {    font-size: var(--font-size-s);
    width: 150px;
    displaybackground-color: nonetransparent;
}

span.i_holdingrow_currentName {
	display: none;
}
span.i_holdingrow_name {
	/*display: none;*/
}
#entryName{
	/*margin: 0 0 10px 0;*/
}
.nameSubtext    padding: 5px 10px;
    margin: 5px;
    line-height: 45px;
    cursor: pointer;
}

.radio {
    displayposition: noneabsolute;
    heightz-index: auto-10;
}
#entryStartups .cf_textarea {
  margin: 0 0pxbackground: 0transparent 0px!important;
    color: white;
    object-fit: contain;
    font-family: Raleway;
    font-size: 9pxvar(--secondary-font-color);
}
#entryStartups span {
	margin: 0px;
}
div#entryStartups {
    flex-direction: column;
}
.currentOrganizer {
	display: none !important;
}
div#uploadButton4 {
	font-family: unset;
	color: var(--cb-font);
	background: var(--cb-fill);
    fontborder-weightradius: bold6px;
}
textarea#i_location {
    font-stretchbackground: normal;unset;
}
input#i_location {
    fontmin-stylewidth: normal100%;
}

div#entryLocation {
   line-height display: 1.91flex;
    letterflex-spacingdirection: 0.6pxcolumn;
}
p.auto-cursor-targetdiv#select2-drop {
	marginbackground-image: 0pxunset !important;
}
.my-button {
	borderbackground: 1px solid var(--cb-outline);
    /* margin-right: 10px; */
    white !important;
}
#main-content {
background-image: linear-gradient(to right, #26c9b7 , #23c3ad);
	border-radius: 6px;
	margin-top: 5px;
}
div#orguploadunset !important;
}
.my-button {
background-image: unset !important;
}
div.display-none {
    margindisplay: 15px 0 0 5px !importantnone;
}
.sponsorImage1
span.i_holdingrow_currentName {
	justify-contentdisplay: startnone;
}
    flex-wrap: wrap;span.i_holdingrow_name {
	/*display: none;*/
}
#orgupload#entryName{
	height/*margin: 0 unset !important;0 10px 0;*/
}
img.uploadImagenameSubtext {
    widthdisplay: 30pxnone;
    height: 45pxauto;
    margin: 0 auto0px 0 0px;
	
}

.uploadButton {
    widthcolor: 85%white;
    borderobject-fit: 1px solid var(--cb-outline)contain;
    /* margin-rightfont-family: 10pxRaleway; */
    background-image: linear-gradient(to right, #26c9b7 , #23c3ad);
    font-family: Raleway;
    font-font-size: 15px9px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.7591;
    letter-spacing: normal0.6px;
}
    color: #ffffff;
    p.auto-cursor-target {
	margin: 8px0px auto!important;
}
.my-button {
	border: 1px  cursor: pointersolid var(--cb-outline);
    max-width/* margin-right: 130px10px; */
    heightbackground-image: 40px;
    display: flex;
    align-items: center;linear-gradient(to right, #26c9b7 , #23c3ad);
	border-radius: 6px;
	margin-top: 5px;
}
div#orgupload {
    justify-contentmargin: center15px 0 0 5px !important;
}
.fileUploadContainersponsorImage1{
	marginjustify-content: 9pxstart;
  8px 9px 0;
	min-widthflex-wrap: 190pxwrap;
}
#orgupload{
	flex-directionheight: column;
    text-align: center;unset !important;
}
img.uploadImage {
    width: 30%30px;
    border-radiusheight: 3px45px;
    paddingmargin: 5px;
    color: white;0 auto;
	
}

.uploadButton {
    displaywidth: flex85%;
    border: 1px solid 1px rgba(300,300,300,0.51var(--cb-outline);
}
input#i_currentSponsorimage1 {
   /* margin-right: 0 0 0px -5px;
}
input#i_currentSponsorimage3 {
	margin: 0 0 0px -5px;
}
label#i_labelfor_currentSponsorimage3 {
    margin: 0 0px 12px -5px;
}
button.clearButton {
	cursor: pointer10px; */
    background-image: linear-gradient(to right, #26c9b7 , #23c3ad);
    font-family: Raleway;
    font-size: 15px;
    widthfont-weight: fit-contentbold;
    /* margin-bottomfont-stretch: 9pxnormal; */
    /* margin-topfont-style: 10pxnormal; */
    borderline-height: transparent1.75;
    marginletter-rightspacing: 10pxnormal;
    background-imagecolor: transparent#ffffff;
    font-familymargin: Raleway8px auto;
    font-sizecursor: 13pxpointer;
    fontmax-weightwidth: normal130px;
    font-stretchheight: normal40px;
    font-styledisplay: normalflex;
    linealign-heightitems: 1.75center;
    letterjustify-spacingcontent: normalcenter;
    color: #ffffff}
.fileUploadContainer{
	margin: 9px 8px 9px 0;
	min-width: 190px;
	flex-direction: column;
    backgroundtext-align: transparentcenter;
}
.select2-container-multi .select2-choices .select2-search-field input.select2-active {    width: 30%;
    border-radius: 3px;
    background: transparent !important;
}
form.aui .text[disabled], form.aui .password[disabled], form.aui .textarea[disabled], form.aui .select[disabled], form.aui .multi-select[disabled] {
 background: transparent;
}
div#entrySponsorspadding: 5px;
    color: white;
    display: flex;
    border: solid 1px rgba(300,300,300,0.51);
}
input#i_currentSponsorimage1 {
    widthmargin: 0 0 50%0px !important-5px;
}

input#i_sponsorscurrentSponsorimage3 {
	margin: 0 0 0px max-width: 500px !important;
 -5px;
}
label#i_labelfor_currentSponsorimage3 {
   /* widthmargin: 0 100% !important; */0px 12px -5px;
}

#entrySponsors .auto-cursor-targetbutton.clearButton {
	cursor: pointer;
    width: 100% !important;
}

span.i_holdingrow_sponsors {max-width: 100% !important;}
input#i_addImage1-yes {
    display: none;
}

input#i_removeImage1-no {fit-content;
    /* margin-bottom: 9px; */
    /* margin-top: 10px; */
    displayborder: nonetransparent;
}
input#i_addImage2-yes {
    displaymargin-right: none10px;
}

input#i_removeImage2-no {
    displaybackground-image: none;
}
label {transparent;
    colorfont-family: var(--primary-color)Raleway;
    borderfont-size: var(--border)13px;
    font-sizeweight: var(--font-size-s)normal;
    widthfont-stretch: 150pxnormal;
    backgroundfont-colorstyle: transparentnormal;
    paddingline-height: 5px 10px1.75;
    marginletter-spacing: 5px 0 5px 0normal;
    line-heightcolor: 45px !important#ffffff;
    cursorbackground: pointertransparent;
}

input:checked + label.select2-container-multi .select2-choices .select2-search-field input.select2-active {
    background: var(--us-tab-outline);
    color: #ffffff!important;
    box-shadow: none;
}
textarea#i_agenda transparent !important;
}
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 {
    max-width: 100%50% !important;
}

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

div#entryAgenda {
       max-width: 500px !important;
    /* 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: transparent;
    color: white !IMPORTANTnone;
}
textarea#i_programlabel {
    backgroundcolor: transparentvar(--primary-color);
    colorborder: white !IMPORTANT;
}

span.i_holdingrow_agenda {var(--border);
    display: flex;
    flex-direction: column;
}
.saveFormContainer {font-size: var(--font-size-s);
    displaywidth: flex150px;
    textbackground-aligncolor: righttransparent;
    widthpadding: 95.5% !important5px 10px;
    margin: -10px5px 0 10px5px 0;
}

.confiFormsFormFooter {    line-height: 45px !important;
    displaycursor: nonepointer;
}
.jqte_toolbar.unselectable
input:checked + label {
    heightbackground: 27px;
}
.jqte * {
	var(--us-tab-outline);
    color: white #ffffff!important;
}
div.jqte_editor * {
    backgroundbox-colorshadow: transparent !importantnone;
}
span.itextarea#i_holdingrow_agenda {
    max-width: 100% inherit!important;
}
span.i_holdingrow_name
a#saveFormButton {
    	margin-left: auto;
	width: inherit170px;
}

span.i_holdingrow_cohostsdiv#entryAgenda {
    width: inherit100%;
}

span.i_holdingrow_rsvptextarea#i_program {
    max-width: inherit100% !important;
}

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

span.i_holdingrow_typeselect#i_round {
    max-width: inherit !important100%;
}

select#iinput#i_typestartDate {
    max-width: 100% unset!important;
}

input#i_startDate {
    padding: 0 max-width: unset10px 0 !important;
}

input#itextarea#i_endDateagenda {
    background: transparent;
    max-widthcolor: unsetwhite !importantIMPORTANT;
}
p.auto-cursor-target {textarea#i_program {
    background: transparent;
    widthcolor: white inherit!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 {
    width: 100% !important;
    max-width: unset.saveFormContainer {
    display: flex;
    text-align: right;
    width: 95.5% !important;
    margin: -10px 0 10px 0;
}

.confiFormsFormFooter {
    display: none;
}
.jqte_toolbar.unselectable {
    height: 27px;
}
.jqte * {
	color: white !important;
}
div.jqte_editor * {
    background-color: transparent !important;
}
input#i_image, input#i_sponsorimage1, input#i_sponsorimage2, input#i_sponsorimage3, input#i_imageOrganizer {
  color: whitespan.i_holdingrow_agenda {
    width: inherit;
}
span.confiFormsFormBorderi_holdingrow_name {
	border    width: none !importantinherit;
}
.cf-calendar-time
span.i_holdingrow_cohosts {
	display    width: none !importantinherit;
}
div {

span.i_holdingrow_rsvp {
    width: inherit;
}

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

span.output-inlinei_holdingrow_type {
    marginwidth: 5px;
	display: flex;inherit !important;
}

select#i_type {
    flexmax-directionwidth: columnunset;
}

div#s2idinput#i_i_cohostsstartDate {
    /*max-width: 285pxunset !important;*/
}
.questionContainer
input#i_endDate {
    backgroundmax-width: unset #172b4d!important;
    border-radius: 9px;
}
p.auto-cursor-target {
    paddingwidth: 30pxinherit;
	width: 80% !important;
}
span.conf-macro.output-inline {
    marginwidth: autoinherit;
    align-items: center	justify-content: flex-end;
}

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-radius: 3px;
    border: solid 1px rgba(300,300,300,0.51) /* 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 {
    width: 100% !important;
    minmax-heightwidth: 40pxunset !important;
	color:white;
}
input#i_image, input#i_sponsorimage1,  
.ffi input[type="file"]input#i_sponsorimage2, input#i_sponsorimage3, input#i_imageOrganizer {
  color:  backgroundwhite;
}
.confiFormsFormBorder {
	border: transparentnone !important;
}
.cf-calendar-time {
	display:   opacity: .21;
    border-radius: 3px;
    border: solid 1px rgba(300,300,300,0.51);
}

#i_holdingrow_image label none !important;
}
div {}

li.select2-search-choice div {
    color: white;
}
span.output-inline {
    margin: 5px;
	display: flex;
    flex-direction: column;
}
div#s2id_i_cohosts {
    background/*max-width: transparent285px !important;*/
}
.questionContainer {
    opacitybackground: 0.75#172b4d;
    border-radius: 3px9px;
    borderpadding: solid 1px #ffffff;
}

.jqte_editor, .jqte_source {
    background: transparent;
	color: white !important;
}

.jqte_toolbar {
    background: rgba(300,300,300,0.5)30px;
	width: 80% !important;
    margin: auto;
    align-items: center;
}

.jqte_toolform.aui legend, .jqte_tool_icon, .jqte_tool_form.aui label {
    /* opacity: 0.21; */
    border-radius: 3px;
    border: solid 0px #ffffff;
}
.desc{
	object-fit: contain;
    font-size: 11px;
    font-weight: bold;
    font-stretch: normalobject-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;
    font-styleopacity: normal0.75;
    lineborder-heightradius: 1.913px;
    letter-spacing: 0.6pxborder: solid 1px rgba(300,300,300,0.51) !important;
    min-height: 40px !important;
	color: #fafafawhite;
}
.questionwrapper   
.ffi input[type="file"] {
	height    background: autotransparent !important;
}
#entryNameInput {
	flex-direction: column;
}
#entryCountry {
	flex-direction: column;
}
#entryCategory {
	flex-direction: column;
}
#entryRound {
	flex-direction: column;
}
div#entryCatLoc {
	flex-direction: row;
}
div#entryLocation    opacity: .21;
    border-radius: 3px;
    border: solid 1px rgba(300,300,300,0.51);
}

#i_holdingrow_image label {
    margin-bottombackground: transparent 5px!important;
}
div#entryType {    opacity: 0.75;
    flexborder-directionradius: column3px;
}

div#entrySponsors {
    border: solid flex-direction: column1px #ffffff;
}

div#entryEndTime.jqte_editor, .jqte_source {
     flex-direction: columnbackground: transparent;
	color: white !important;
}

div#entryStartTime.jqte_toolbar {
    flex-directionbackground: columnrgba(300,300,300,0.5);
}
div.entryInput {
	flex-direction: column;
}
#entrySummary {
	flex-wrap: wrap;
}

div#action-errors-confiform {
    background: rgba(0,0,0,0.5);
.jqte_tool, .jqte_tool_icon, .jqte_tool_label {
    /* opacity: 0.21; */
    border-radius: none3px;
    border-radius: 9px: solid 0px #ffffff;
}
.desc{
	object-fit: contain;
    paddingfont-size: 25px11px;
 25px !important;
    widthfont-weight: 80% !importantbold;
    marginfont-stretch: autonormal;
    alignfont-itemsstyle: centernormal;
}

#action-errors-confiform ul li {
    color: var(--primary-font-color) line-height: 1.91;
    fontletter-sizespacing: var(--font-size-m)0.6px;
    paddingcolor: 5px 0px#fafafa;
}

.aui-message::afterquestionwrapper {
	height: auto   display: none;   !important;
}
#entryNameInput {
	flex-direction: column;
}

@media only screen and (min-width: 320px) and (max-width: 480px)#entryCountry {
	flex-direction: column;
}
#entryCategory {
	flex-direction: column;
}
#entryRound {
	.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;
		flex-direction: column;
}
div#entryCatLoc {
	flex-direction: row;
}
div#entryLocation {
    margin-bottom: 5px;
}
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;
		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#entrySponsors
}

#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%;
		max-width: 100;
	}

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

	p.auto-cursor-target {
		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/EV/Dashboard");
}

</script>

Is in group
GroupNameconfluence-administrators,awsedstart-admins,awsedstart-superadmins
Actionwindow.location.replace("/display/EV/Dashboard");
IDisingroupfunc

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

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(err);
    },
  });
}
</script>

...

formNamecreateEvent
presetValuesnotify=true
embeddedtrue

...

custom-buttonsaveFormButtonSave

...

name

...

startDate

...

endDate

...

category

...

e.g. San Francisco, CAlocation

...

program

...

agenda

...

flex-direction: column; display: none;imageOrganizer

...

trueflex-direction: column; currentImageOrganizertrue

...

cohosts

...

rsvptrue

...

notify

...

pageName

formIdtrue

RSVPCount

currentName

sequence

startDateTimestamp

endDateTimestamp

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>

...

additionalFormAdminsconfluence-users
formNamecreateEvent
allowReadstrue
exporttrue

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

currentNameCurrent Nametext

pageNamePage Nametext

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-->

...

<!--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 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-->

...

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

...

<!--Update currentName from currentName on existing entry→

...

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

...

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

...

<!--Update fields upon edit-->

...

<!--Redirect on update-->

...

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

...

<!–TODO - Set page name from title→

...

<!–Create new page-->

...


	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#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/EV/Dashboard");
}

</script>

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

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

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);
    },
  });
}
</script>


ConfiForms (FormView) Registrations Control
formNamecreateEvent
presetValuesnotify=true
embeddedtrue



saveFormContainerINLINE

custom-buttonsaveFormButtonSave




flex-direction: column;questionContainerINLINE



entryNameINLINE



height: auto !important;entryNameInputauto !importantINLINE


name





entryStartTimeINLINE


startDate




entryEndTimeINLINE


endDate






entryCatLocINLINE



entryCategoryINLINE


category




entryLocationINLINE


e.g. San Francisco, CAlocation






entrySummaryINLINE



entryProgramentryInputINLINE


program




entryAgendaentryInputINLINE


agenda





entryImageOrganizerentryInputINLINE




flex-direction: column; display: none;imageOrganizer

display: none !important; currentOrganizerINLINE

trueflex-direction: column; currentImageOrganizertrue





entryOptionsINLINE



display: none;INLINE


zoomAccount

zoomPassword

topicId


entryCollaboratorsentryInputINLINE


watchLiveEvent

streamLink

recordedLink

streamWrapper

disableChat





entryStartupsINLINE



entryInput entryStartupsINLINE


addStartup1


flex-direction:column;add1INLINE

removeStartup1

startupName1

startupDesc1

startupTagline1

startupLogoLink1

startupPDLink1

startupEmail1

startupWebsite1

startupLocation1

startupFounder1

startupVerticals1

addStartup2






entryInput entryStartupsINLINE



flex-direction:column;add2INLINE

removeStartup2

startupName2

startupDesc2

startupTagline2

startupLogoLink2

startupPDLink2

startupEmail2

startupWebsite2

startupLocation2

startupFounder2

startupVerticals2

addStartup3






entryInput entryStartupsINLINE



flex-direction:column;add3INLINE

removeStartup3

startupName3

startupDesc3

startupTagline3

startupLogoLink3

startupPDLink3

startupEmail3

startupWebsite3

startupLocation3

startupFounder3

startupVerticals3

addStartup4






entryInput entryStartupsINLINE



flex-direction:column;add4INLINE

removeStartup4

startupName4

startupDesc4

startupTagline4

startupLogoLink4

startupPDLink4

startupEmail4

startupWebsite4

startupLocation4

startupFounder4

startupVerticals4

addStartup5






entryInput entryStartupsINLINE



flex-direction:column;add5INLINE

removeStartup5

startupName5

startupDesc5

startupTagline5

startupLogoLink5

startupPDLink1

startupEmail5

startupWebsite5

startupLocation5

startupFounder5

startupVerticals5

addStartup6






entryInput entryStartupsINLINE



flex-direction:column;add6INLINE

removeStartup6

startupName6

startupDesc6

startupTagline6

startupLogoLink6

startupPDLink6

startupEmail6

startupWebsite6

startupLocation6

startupFounder6

startupVerticals6

addStartup7






entryInput entryStartupsINLINE



flex-direction:column;add7INLINE

removeStartup7

startupName7

startupDesc7

startupTagline7

startupLogoLink7

startupPDLink7

startupEmail7


startupWebsite7

startupLocation7

startupFounder7

startupVerticals7

addStartup8






entryInput entryStartupsINLINE



flex-direction:column;add8INLINE

removeStartup8

startupName8

startupDesc8

startupTagline8

startupLogoLink8

startupPDLink8

startupEmail8


startupWebsite8

startupLocation8

startupFounder8

startupVerticals8

addStartup9






entryInput entryStartupsINLINE



flex-direction:column;add9INLINE

removeStartup9

startupName9

startupDesc9

startupTagline9

startupLogoLink9

startupPDLink9

startupEmail9


startupWebsite9

startupLocation9

startupFounder9

startupVerticals9

addStartup10






entryInput entryStartupsINLINE



flex-direction:column;add10INLINE

removeStartup10

startupName10

startupDesc10

startupTagline10

startupLogoLink10

startupPDLink10

startupEmail10


startupWebsite10

startupLocation10

startupFounder10

startupVerticals10








entryCollabSponsorINLINE



entryCollaboratorsentryInputINLINE


cohosts



display-noneINLINE

rsvptrue





entryCollabSponsorINLINE



flex-direction:row;entryInputINLINE


notify





display-noneINLINE

pageName

formIdtrue

RSVPCount

currentName

sequence


startDateTimestamp

endDateTimestamp





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>


ConfiForms Form Definition
additionalFormAdminsconfluence-users
formNamecreateEvent
allowReadstrue
exporttrue


nameEvent Nametext

currentNameCurrent Nametext

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

formId:[empty]trueCreate ConfiForms EntryonCreatedentryId=[entry.id]&pageName=[entry.name]


imageEvent Imageimage/*falsefiletrue

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

streamWrapperStream Wrappertext

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

watchLiveEventWatch Live Eventtruefalsetext

zoomAccountZoom Accounttruefalsetext

zoomPasswordZoom Passwordtruefalsetext

streamLinkLive Stream Linktruefalsetext

recordedLinkRecorded Stream Linktruefalsetext

disableChatDisable Chattruefalsecheckbox

topicIdTopic IDtruefalsetext


addStartup1Add Startup 1true[yes=Add Startup|]radio_group

addStartup2Add Startup 2true[yes=Add Startup|]radio_group

addStartup3Add Startup 3true[yes=Add Startup|]radio_group

addStartup4Add Startup 4true[yes=Add Startup|]radio_group

addStartup5Add Startup 5true[yes=Add Startup|]radio_group

addStartup6Add Startup 6true[yes=Add Startup|]radio_group

addStartup7Add Startup 7true[yes=Add Startup|]radio_group

addStartup8Add Startup 8true[yes=Add Startup|]radio_group

addStartup9Add Startup 9true[yes=Add Startup|]radio_group

addStartup10Add Startup 10true[yes=Add Startup|]radio_group


startupName1Startup Name 1true[yes=Add Startup|]text

startupName2Startup Name 2true[yes=Add Startup|]text

startupName3Startup Name 3true[yes=Add Startup|]text

startupName4Startup Name 4true[yes=Add Startup|]text

startupName5Startup Name 5true[yes=Add Startup|]text

startupName6Startup Name 6true[yes=Add Startup|]text

startupName7Startup Name 7true[yes=Add Startup|]text

startupName8Startup Name 8true[yes=Add Startup|]text

startupName9Startup Name 9true[yes=Add Startup|]text

startupName10Startup Name 10true[yes=Add Startup|]text


startupDesc1Startup Desc 1textarea

startupDesc2Startup Desc 2textarea

startupDesc3Startup Desc 3textarea

startupDesc4Startup Desc 4textarea

startupDesc5Startup Desc 5textarea

startupDesc6Startup Desc 6textarea

startupDesc7Startup Desc 7textarea

startupDesc8Startup Desc 8textarea

startupDesc9Startup Desc 9textarea

startupDesc10Startup Desc 10textarea


startupTagline1Startup Tagline 1textarea

startupTagline2Startup Tagline 2textarea

startupTagline3Startup Tagline 3textarea

startupTagline4Startup Tagline 4textarea

startupTagline5Startup Tagline 5textarea

startupTagline6Startup Tagline 6textarea

startupTagline7Startup Tagline 7textarea

startupTagline8Startup Tagline 8textarea

startupTagline9Startup Tagline 9textarea

startupTagline10Startup Tagline 10textarea


startupLogoLink1Startup Logo Link 1true[yes=Add Startup|]text

startupLogoLink2Startup Logo Link 2true[yes=Add Startup|]text

startupLogoLink3Startup Logo Link 3true[yes=Add Startup|]text

startupLogoLink4Startup Logo Link 4true[yes=Add Startup|]text

startupLogoLink5Startup Logo Link 5true[yes=Add Startup|]text

startupLogoLink6Startup Logo Link 6true[yes=Add Startup|]text

startupLogoLink7Startup Logo Link 7true[yes=Add Startup|]text

startupLogoLink8Startup Logo Link 8true[yes=Add Startup|]text

startupLogoLink9Startup Logo Link 9true[yes=Add Startup|]text

startupLogoLink10Startup Logo Link 10true[yes=Add Startup|]text


startupPDLink1Startup PD Link 1true[yes=Add Startup|]text

startupPDLink2Startup PD Link 2true[yes=Add Startup|]text

startupPDLink3Startup PD Link 3true[yes=Add Startup|]text

startupPDLink4Startup PD Link 4true[yes=Add Startup|]text

startupPDLink5Startup PD Link 5true[yes=Add Startup|]text

startupPDLink6Startup PD Link 6true[yes=Add Startup|]text

startupPDLink7Startup PD Link 7true[yes=Add Startup|]text

startupPDLink8Startup PD Link 8true[yes=Add Startup|]text

startupPDLink9Startup PD Link 9true[yes=Add Startup|]text

startupPDLink10Startup PD Link 10true[yes=Add Startup|]text


startupEmail1Startup Email 1text

startupEmail2Startup Email 2text

startupEmail3Startup Email 3text

startupEmail4Startup Email 4text

startupEmail5Startup Email 5text

startupEmail6Startup Email 6text

startupEmail7Startup Email 7text

startupEmail8Startup Email 8text

startupEmail9Startup Email 9text

startupEmail10Startup Email 10text


startupWebsite1Startup Website 1text

startupWebsite2Startup Website 2text

startupWebsite3Startup Website 3text

startupWebsite4Startup Website 4text

startupWebsite5Startup Website 5text

startupWebsite6Startup Website 6text

startupWebsite7Startup Website 7text

startupWebsite8Startup Website 8text

startupWebsite9Startup Website 9text

startupWebsite10Startup Website 10text


startupLocation1Startup Location 1text

startupLocation2Startup Location 2text

startupLocation3Startup Location 3text

startupLocation4Startup Location 4text

startupLocation5Startup Location 5text

startupLocation6Startup Location 6text

startupLocation7Startup Location 7text

startupLocation8Startup Location 8text

startupLocation9Startup Location 9text

startupLocation10Startup Location 10text


startupFounder1Startup Founder 1text

startupFounder2Startup Founder 2text

startupFounder3Startup Founder 3text

startupFounder4Startup Founder 4text

startupFounder5Startup Founder 5text

startupFounder6Startup Founder 6text

startupFounder7Startup Founder 7text

startupFounder8Startup Founder 8text

startupFounder9Startup Founder 9text

startupFounder10Startup Founder 10text


startupVerticals1Startup Verticals 1text

startupVerticals2Startup Verticals 2text

startupVerticals3Startup Verticals 3text

startupVerticals4Startup Verticals 4text

startupVerticals5Startup Verticals 5text

startupVerticals6Startup Verticals 6text

startupVerticals7Startup Verticals 7text

startupVerticals8Startup Verticals 8text

startupVerticals9Startup Verticals9text

startupVerticals10Startup Verticals 10text


removeStartup1Remove Startup 1true[no=x|]radio_group

removeStartup2Remove Startup 2true[no=x|]radio_group

removeStartup3Remove Startup 3true[no=x|]radio_group

removeStartup4Remove Startup 4true[no=x|]radio_group

removeStartup5Remove Startup 5true[no=x|]radio_group

removeStartup6Remove Startup 6true[no=x|]radio_group

removeStartup7Remove Startup 7true[no=x|]radio_group

removeStartup8Remove Startup 8true[no=x|]radio_group

removeStartup9Remove Startup 9true[no=x|]radio_group

removeStartup10Remove Startup 10true[no=x|]radio_group


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


<!-- Startup Add/Remove Rules →

addStartup1:yesShow containeraddStartup1.add1true

removeStartup1:noaddStartup1, removeStartup1, startupName1, startupDesc1, startupTagline1, startupLogoLink1, startupPDLink1, startupEmail1Reset valueremoveStartup1

addStartup2:yesShow containeraddStartup2.add2true

removeStartup2:noaddStartup2, removeStartup2, startupName2, startupDesc2, startupTagline2, startupLogoLink2, startupPDLink2, startupEmail2Reset valueremoveStartup2

addStartup3:yesShow containeraddStartup3.add3true

removeStartup3:noaddStartup3, removeStartup3, startupName3, startupDesc3, startupTagline3, startupLogoLink3, startupPDLink3, startupEmail3Reset valueremoveStartup3

addStartup4:yesShow containeraddStartup4.add4true

removeStartup4:noaddStartup4, removeStartup4, startupName4, startupDesc4, startupTagline4, startupLogoLink4, startupPDLink4, startupEmail4Reset valueremoveStartup4

addStartup5:yesShow containeraddStartup5.add5true

removeStartup5:noaddStartup5, removeStartup5, startupName5, startupDesc5, startupTagline5, startupLogoLink5, startupPDLink5, startupEmail5Reset valueremoveStartup5

addStartup6:yesShow containeraddStartup6.add6true

removeStartup6:noaddStartup6, removeStartup6, startupName6, startupDesc6, startupTagline6, startupLogoLink6, startupPDLink6, startupEmail6Reset valueremoveStartup6

addStartup7:yesShow containeraddStartup7.add7true

removeStartup7:noaddStartup7, removeStartup7, startupName7, startupDesc7, startupTagline7, startupLogoLink7, startupPDLink7, startupEmail7Reset valueremoveStartup7

addStartup8:yesShow containeraddStartup8.add8true

removeStartup8:noaddStartup8, removeStartup8, startupName8, startupDesc8, startupTagline8, startupLogoLink8, startupPDLink8, startupEmail8Reset valueremoveStartup8

addStartup9:yesShow containeraddStartup9.add9true

removeStartup9:noaddStartup9, removeStartup9, startupName9, startupDesc9, startupTagline9, startupLogoLink9, startupPDLink9, startupEmail9Reset valueremoveStartup9

addStartup10:yesShow containeraddStartup10.add10true

removeStartup10:noaddStartup10, removeStartup10, startupName10, startupDesc10, startupTagline10, startupLogoLink10, startupPDLink10, startupEmail10Reset valueremoveStartup10


<!--Load the current field values→

!formId:[empty]entryId=[entry.formId]&name=[entry.name]&currentName=[entry.currentName]&pageName=[entry.pageName]&currentImage=[entry.currentImage]&&agenda=[entry.agenda]&program=[entry.program]&cohosts=[entry.ownedBy]&createdPage=[entry.createdPage]&publish=[entry.publish]&RSVPCount=[entry.RSVPCount]&location=[entry.location]&category=[entry.category.transform(id).asList]&watchLiveEvent=[entry.watchLiveEvent]&streamLink=[entry.streamLink]&recordedLink=[entry.recordedLink]&zoomAccount=[entry.zoomAccount]&zoomPassword=[entry.zoomPassword]id:[entry.formId]Lookup and set value

!formId:[empty]toggleStartups=[entry.toggleStartups]&addStartup1=[entry.addStartup1]&removeStartup1=[entry.removeStartup1]&startupName1=[entry.startupName1]&startupDesc1=[entry.startupDesc1]&startupTagline1=[entry.startupTagline1]&startupLogoLink1=[entry.startupLogoLink1]&startupPDLink1=[entry.startupPDLink1]&startupEmail1=[entry.startupEmail1]&addStartup2=[entry.addStartup2]&removeStartup2=[entry.removeStartup2]&startupName2=[entry.startupName2]&startupDesc2=[entry.startupDesc2]&startupTagline2=[entry.startupTagline2]&startupLogoLink2=[entry.startupLogoLink2]&startupPDLink2=[entry.startupPDLink2]&startupEmail2=[entry.startupEmail2]&addStartup3=[entry.addStartup3]&removeStartup3=[entry.removeStartup3]&startupName3=[entry.startupName3]&startupDesc3=[entry.startupDesc3]&startupTagline3=[entry.startupTagline3]&startupLogoLink3=[entry.startupLogoLink3]&startupPDLink3=[entry.startupPDLink3]&startupEmail3=[entry.startupEmail3]&addStartup4=[entry.addStartup4]&removeStartup4=[entry.removeStartup4]&startupName4=[entry.startupName4]&startupDesc4=[entry.startupDesc4]&startupTagline4=[entry.startupTagline4]&startupLogoLink4=[entry.startupLogoLink4]&startupPDLink4=[entry.startupPDLink4]&startupEmail4=[entry.startupEmail4]&addStartup5=[entry.addStartup5]&removeStartup5=[entry.removeStartup5]&startupName5=[entry.startupName5]&startupDesc5=[entry.startupDesc5]&startupTagline5=[entry.startupTagline5]&startupLogoLink5=[entry.startupLogoLink5]&startupPDLink5=[entry.startupPDLink5]&startupEmail5=[entry.startupEmail5]&addStartup6=[entry.addStartup6]&removeStartup6=[entry.removeStartup6]&startupName6=[entry.startupName6]&startupDesc6=[entry.startupDesc6]&startupTagline6=[entry.startupTagline6]&startupLogoLink6=[entry.startupLogoLink6]&startupPDLink6=[entry.startupPDLink6]&startupEmail6=[entry.startupEmail6]&addStartup7=[entry.addStartup7]&removeStartup7=[entry.removeStartup7]&startupName7=[entry.startupName7]&startupDesc7=[entry.startupDesc7]&startupTagline7=[entry.startupTagline7]&startupLogoLink7=[entry.startupLogoLink7]&startupPDLink7=[entry.startupPDLink7]&startupEmail7=[entry.startupEmail7]&addStartup8=[entry.addStartup8]&removeStartup8=[entry.removeStartup8]&startupName8=[entry.startupName8]&startupDesc8=[entry.startupDesc8]&startupTagline8=[entry.startupTagline8]&startupLogoLink8=[entry.startupLogoLink8]&startupPDLink8=[entry.startupPDLink8]&startupEmail8=[entry.startupEmail8]&addStartup9=[entry.addStartup9]&removeStartup9=[entry.removeStartup9]&startupName9=[entry.startupName9]&startupDesc9=[entry.startupDesc9]&startupTagline9=[entry.startupTagline9]&startupLogoLink9=[entry.startupLogoLink9]&startupPDLink9=[entry.startupPDLink9]&startupEmail9=[entry.startupEmail9]&addStartup10=[entry.addStartup10]&removeStartup10=[entry.removeStartup10]&startupName10=[entry.startupName10]&startupDesc10=[entry.startupDesc10]&startupTagline10=[entry.startupTagline10]&startupLogoLink10=[entry.startupLogoLink10]&startupPDLink10=[entry.startupPDLink10]&startupEmail10=[entry.startupEmail10]id:[entry.formId]Lookup and set value

!formId:[empty]startupWebsite1=[entry.startupWebsite1]&startupLocation1=[entry.startupLocation1]&startupFounder1=[entry.startupFounder1]&startupVerticals1=[entry.startupVerticals1]&startupWebsite2=[entry.startupWebsite2]&startupLocation2=[entry.startupLocation2]&startupFounder2=[entry.startupFounder2]&startupVerticals2=[entry.startupVerticals2]&startupWebsite3=[entry.startupWebsite3]&startupLocation3=[entry.startupLocation3]&startupFounder3=[entry.startupFounder3]&startupVerticals3=[entry.startupVerticals3]&startupWebsite4=[entry.startupWebsite4]&startupLocation4=[entry.startupLocation4]&startupFounder4=[entry.startupFounder4]&startupVerticals4=[entry.startupVerticals4]&startupWebsite5=[entry.startupWebsite5]&startupLocation5=[entry.startupLocation5]&startupFounder5=[entry.startupFounder5]&startupVerticals5=[entry.startupVerticals5]&startupWebsite6=[entry.startupWebsite6]&startupLocation6=[entry.startupLocation6]&startupFounder6=[entry.startupFounder6]&startupVerticals6=[entry.startupVerticals6]&startupWebsite7=[entry.startupWebsite7]&startupLocation7=[entry.startupLocation7]&startupFounder7=[entry.startupFounder7]&startupVerticals7=[entry.startupVerticals7]&startupWebsite8=[entry.startupWebsite8]&startupLocation8=[entry.startupLocation8]&startupFounder8=[entry.startupFounder8]&startupVerticals8=[entry.startupVerticals8]&startupWebsite9=[entry.startupWebsite9]&startupLocation9=[entry.startupLocation9]&startupFounder9=[entry.startupFounder9]&startupVerticals9=[entry.startupVerticals9]&startupWebsite10=[entry.startupWebsite10]&startupLocation10=[entry.startupLocation10]&startupFounder10=[entry.startupFounder10]&startupVerticals10=[entry.startupVerticals10]&topicId=[entry.topicId]&disableChat=[entry.disableChat]&streamWrapper=[entry.streamWrapper]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 EntryonCreatedentryId=[entry.formId]&ownedBy=[entry.createdBy],[entry.cohosts.asList]


<!--Update currentName from currentName on existing entry→

!currentName=name AND !formId:[empty]Create ConfiForms EntryonCreatedentryId=[entry.formId]&currentName=[entry.currentName]


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

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


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

formId:[empty] AND PEANUTStrueCreate ConfiForms EntryonCreatedentryId=[entry.id]& currentImageOrganizer = imageOrganizer


<!--Update fields upon edit-->

!formId:[empty]Create ConfiForms EntryonCreatedentryId=[entry.formId]&name=[entry.name]&currentName=[entry.currentName]&pageName=[entry.pageName]&currentImage=[entry.currentImage]&startDate=[entry.startDate]&endDate=[entry.endDate]&agenda=[entry.agenda]&program=[entry.program]&cohosts=[entry.ownedBy]&createdPage=[entry.createdPage]&publish=[entry.publish]&RSVPCount=[entry.RSVPCount]&location=[entry.location]&category=[entry.category]&watchLiveEvent=[entry.watchLiveEvent]&streamLink=[entry.streamLink]&toggleStartups=[entry.toggleStartups]&addStartup1=[entry.addStartup1]&removeStartup1=[entry.removeStartup1]&startupName1=[entry.startupName1]&startupDesc1=[entry.startupDesc1]&startupTagline1=[entry.startupTagline1]&startupLogoLink1=[entry.startupLogoLink1]&startupPDLink1=[entry.startupPDLink1]&startupEmail1=[entry.startupEmail1]&addStartup2=[entry.addStartup2]&removeStartup2=[entry.removeStartup2]&startupName2=[entry.startupName2]&startupDesc2=[entry.startupDesc2]&startupTagline2=[entry.startupTagline2]&startupLogoLink2=[entry.startupLogoLink2]&startupPDLink2=[entry.startupPDLink2]&startupEmail2=[entry.startupEmail2]&addStartup3=[entry.addStartup3]&removeStartup3=[entry.removeStartup3]&startupName3=[entry.startupName3]&startupDesc3=[entry.startupDesc3]&startupTagline3=[entry.startupTagline3]&startupLogoLink3=[entry.startupLogoLink3]&startupPDLink3=[entry.startupPDLink3]&startupEmail3=[entry.startupEmail3]&addStartup4=[entry.addStartup4]&removeStartup4=[entry.removeStartup4]&startupName4=[entry.startupName4]&startupDesc4=[entry.startupDesc4]&startupTagline4=[entry.startupTagline4]&startupLogoLink4=[entry.startupLogoLink4]&startupPDLink4=[entry.startupPDLink4]&startupEmail4=[entry.startupEmail4]&addStartup5=[entry.addStartup5]&removeStartup5=[entry.removeStartup5]&startupName5=[entry.startupName5]&startupDesc5=[entry.startupDesc5]&startupTagline5=[entry.startupTagline5]&startupLogoLink5=[entry.startupLogoLink5]&startupPDLink5=[entry.startupPDLink5]&startupEmail5=[entry.startupEmail5]&addStartup6=[entry.addStartup6]&removeStartup6=[entry.removeStartup6]&startupName6=[entry.startupName6]&startupDesc6=[entry.startupDesc6]&startupTagline6=[entry.startupTagline6]&startupLogoLink6=[entry.startupLogoLink6]&startupPDLink6=[entry.startupPDLink6]&startupEmail6=[entry.startupEmail6]&addStartup7=[entry.addStartup7]&removeStartup7=[entry.removeStartup7]&startupName7=[entry.startupName7]&startupDesc7=[entry.startupDesc7]&startupTagline7=[entry.startupTagline7]&startupLogoLink7=[entry.startupLogoLink7]&startupPDLink7=[entry.startupPDLink7]&startupEmail7=[entry.startupEmail7]&addStartup8=[entry.addStartup8]&removeStartup8=[entry.removeStartup8]&startupName8=[entry.startupName8]&startupDesc8=[entry.startupDesc8]&startupTagline8=[entry.startupTagline8]&startupLogoLink8=[entry.startupLogoLink8]&startupPDLink8=[entry.startupPDLink8]&startupEmail8=[entry.startupEmail8]&addStartup9=[entry.addStartup9]&removeStartup9=[entry.removeStartup9]&startupName9=[entry.startupName9]&startupDesc9=[entry.startupDesc9]&startupTagline9=[entry.startupTagline9]&startupLogoLink9=[entry.startupLogoLink9]&startupPDLink9=[entry.startupPDLink9]&startupEmail9=[entry.startupEmail9]&addStartup10=[entry.addStartup10]&removeStartup10=[entry.removeStartup10]&startupName10=[entry.startupName10]&startupDesc10=[entry.startupDesc10]&startupTagline10=[entry.startupTagline10]&startupLogoLink10=[entry.startupLogoLink10]&startupPDLink10=[entry.startupPDLink10]&startupEmail10=[entry.startupEmail10] &startupWebsite1=[entry.startupWebsite1]&startupLocation1=[entry.startupLocation1]&startupFounder1=[entry.startupFounder1]&startupVerticals1=[entry.startupVerticals1]&startupWebsite2=[entry.startupWebsite2]&startupLocation2=[entry.startupLocation2]&startupFounder2=[entry.startupFounder2]&startupVerticals2=[entry.startupVerticals2]&startupWebsite3=[entry.startupWebsite3]&startupLocation3=[entry.startupLocation3]&startupFounder3=[entry.startupFounder3]&startupVerticals3=[entry.startupVerticals3]&startupWebsite4=[entry.startupWebsite4]&startupLocation4=[entry.startupLocation4]&startupFounder4=[entry.startupFounder4]&startupVerticals4=[entry.startupVerticals4]&startupWebsite5=[entry.startupWebsite5]&startupLocation5=[entry.startupLocation5]&startupFounder5=[entry.startupFounder5]&startupVerticals5=[entry.startupVerticals5]&startupWebsite6=[entry.startupWebsite6]&startupLocation6=[entry.startupLocation6]&startupFounder6=[entry.startupFounder6]&startupVerticals6=[entry.startupVerticals6]&startupWebsite7=[entry.startupWebsite7]&startupLocation7=[entry.startupLocation7]&startupFounder7=[entry.startupFounder7]&startupVerticals7=[entry.startupVerticals7]&startupWebsite8=[entry.startupWebsite8]&startupLocation8=[entry.startupLocation8]&startupFounder8=[entry.startupFounder8]&startupVerticals8=[entry.startupVerticals8]&startupWebsite9=[entry.startupWebsite9]&startupLocation9=[entry.startupLocation9]&startupFounder9=[entry.startupFounder9]&startupVerticals9=[entry.startupVerticals9]&startupWebsite10=[entry.startupWebsite10]&startupLocation10=[entry.startupLocation10]&startupFounder10=[entry.startupFounder10]&startupVerticals10=[entry.startupVerticals10]&topicId=[entry.topicId]&recordedLink=[entry.recordedLink]&zoomAccount=[entry.zoomAccount]&zoomPassword=[entry.zoomPassword]&disableChat=[entry.disableChat]&streamWrapper=[entry.streamWrapper]createdBy:[entry._user]createEvent:46334144



<!--Redirect on update-->

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


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

formId:[empty]Run JavaScriptonCreated



<!–TODO - Set page name from title→

<!–Create new page-->

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



id:[entry.id]createEvent1

46334144



publisher


Publish@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:46334144




publishec


Unpublish@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:46334144




f

fileAttachfileAttachfile

eventFileNameeventFileNametext

eventTitleEvent 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 Emailproduct@theonevalley.comonCreated[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

trueINLINE



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




Send Emailproduct@theonevalley.comonCreated[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

trueINLINE



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




Send Emailproduct@theonevalley.comonCreated[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/EVE/[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 Emailproduct@gsvlabs.comonCreatedUpdates 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,

Product OneValley 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=46334144&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;
}

  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;
		console.log(`startDateFormatted: ${startDateFormatted}`);
		console.log(`endDateFormatted: ${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>


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).scrollTop(y+700)},300);
})

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

$("#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(() => {
  var y = $(window).scrollTop();  
  setTimeout(function(){$(window).scrollTop(y+700)},300);
})

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

...

46334145

...

publishpublish flagcheckbox

formIdform idread_only

...

publishpublish flagcheckbox

formIdform idread_only

...

fileAttachfileAttachfile

eventFileNameeventFileNametext

eventTitleEvent Titletext

dtWhen30EEE, MMM d yyyy, h:mm a zdatetimeinterval

eventDescriptionEvent Descriptiontextarea

messageBodyICSMessage Bodyhtml

id:fileAttachHide field

recipientRecipienttext

titleTitletext

sequenceSequencetext

...

messageBodyICS

fileAttach

...

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

...

messageBodyICSRemove

fileAttachRemove

...

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

...

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

<!--Redirect new entry-->

...

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

...

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

...

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

...

<!--Delete update entry reference-->

...

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

...

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,

AWS EdStart 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=46334145&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>