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/EWCPittsburgh/eventsPlatformStyleesheetEWCeventsPlatformStyleesheetPittsburgh.css">
-->


<style>
/*Hiding extra fields for now*/
div#entryOptions {
    /*display: none !important;*/
}

div#bannerImgupload {
    height: unset !important;
}
/* hide source code button from editor */
.jqte_tool_21 {
	display: none !important;
}

/* =============== CONFIFORM DATA STYLING =============== */
.aui-dialog label {
    color: black !important;
}

.aui-dialog form.aui .text, form.aui .password, form.aui .select, form.aui .aui-select2-container .select2-choices {
    /*color: black !important;*/
    border: 1px solid black !important;
}

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

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

.aui-dialog li.select2-search-choice div {
    color: black !IMPORTANT;
}
/* =============== ~~~~~~~~~~~~~~~~~~~ =============== */
span.i_holdingrow_currentName {
	display: none;
}
span.i_holdingrow_name {
	/*display: none;*/
}
#entryName{
	/*margin: 0 0 10px 0;*/
}
#entryCategory {
	flex-direction: column;
}
.nameSubtext {
    display: none;
    height: auto;
    margin: 0 0px 0 0px;
    color: white;
    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 {
    background-color: var(--secondary-color) !important;
    width: 170px;
    height: 45px;
    border: none;
    color: var(--primary-font-color) !important;
    border: 1px solid var(--cb-outline);
    font-size: 18px;
    background-color: var(--cb-fill);
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    margin-top: 1px;
	cursor: pointer;
}
div#orgupload {
    margin: 15px 0 0 5px !important;
}
.sponsorImage1{
	justify-content: start;
    flex-wrap: wrap;
}
#orgupload{
	height: unset !important;
}
img.uploadImage {
    width: 30px;
    height: 45px;
    margin: 0 auto;
	
}

.uploadButton {
    width: 85%;
    border: 1px solid var(--cb-outline);
    /* margin-right: 10px; */
    background: var(--secondary-color);
    font-family: Raleway;
    font-size: 15px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.75;
    letter-spacing: normal;
    color: var(--primary-font-color);
    margin: 8px auto;
    cursor: pointer;
    max-width: 130px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fileUploadContainer{
	margin: 9px 8px 9px 0;
	min-width: 190px;
	flex-direction: column;
    text-align: center;
    width: 30%;
    border-radius: 3px;
    padding: 5px;
    color: white;
    display: flex;
    border: solid 1px rgba(300,300,300,0.51);
}
input#i_currentSponsorimage1 {
    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: pointer;
    width: fit-content;
    /* margin-bottom: 9px; */
    /* margin-top: 10px; */
    border: transparent;
    margin-right: 10px;
    background-image: transparent;
    font-family: Raleway;
    font-size: 13px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.75;
    letter-spacing: normal;
    color: #ffffff;
    background: transparent;
}
.select2-container-multi .select2-choices .select2-search-field input.select2-active {
    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#entrySponsors {
    width: 50% !important;
}

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

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

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

input#i_removeImage1-no {
    display: none;
}
input#i_addImage2-yes {
    display: none;
}

input#i_removeImage2-no {
    display: none;
}
label {
    color: var(--primary-color);
    border: var(--border);
    font-size: var(--font-size-s);
    width: 150px;
    background-color: transparent;
    padding: 5px 10px;
    margin: 5px 0 5px 0;
    line-height: 45px !important;
    cursor: pointer;
}

input:checked + label {
    background: var(--us-tab-outline);
    color: #ffffff!important;
    box-shadow: none;
}
textarea#i_agenda {
    max-width: 100% !important;
}

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

div#entryAgenda {
    width: 100%;
}

textarea#i_program {
    max-width: 100% !important;
}

select#i_country {
    max-width: 100%;
}

select#i_round {
    max-width: 100%;
}

input#i_startDate {
    max-width: 100% !important;
    padding: 0 10px 0 !important;
}
textarea#i_agenda {
    background: transparent;
    color: white !IMPORTANT;
}
textarea#i_program {
    background: transparent;
    color: white !IMPORTANT;
}

span.i_holdingrow_agenda {
    display: flex;
    flex-direction: column;
}
.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;
}
span.i_holdingrow_agenda {
    width: inherit;
}
span.i_holdingrow_name {
    width: inherit;
}

span.i_holdingrow_cohosts {
    width: inherit;
}

span.i_holdingrow_rsvp {
    width: inherit;
}

span.i_holdingrow_sponsors {
    width: inherit;
}

span.i_holdingrow_type {
    width: inherit !important;
}

select#i_type {
    max-width: unset;
}

input#i_startDate {
    max-width: unset !important;
}

input#i_endDate {
    max-width: unset !important;
}
p.auto-cursor-target {
    width: inherit;
}

div#select2-drop {
    /*background-image: url(https://gsvlabs-confluence-files.s3-us-west-2.amazonaws.com/images/EWC+2020/gradient.jpg) !important;
    color: white;*/
}
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: white;
  font-size: var(--font-size-xs);
  cursor: pointer;
  text-transform: uppercase;
}
input#i_name {
    width: 100% !important;
    max-width: unset !important;
}
input#i_image, input#i_sponsorimage1, input#i_sponsorimage2, input#i_sponsorimage3, input#i_imageOrganizer {
  color: white;
}
.confiFormsFormBorder {
	border: none !important;
}
.cf-calendar-time {
	display: none !important;
}
div {}

li.select2-search-choice div {
    color: white;
}
span.output-inline {
    margin: 5px;
	display: flex;
    flex-direction: column;
}
div#s2id_i_cohosts {
    /*max-width: 285px !important;*/
}
.questionContainer {
    background: rgba(0,0,0,0.5);
    border-radius: 9px;
    padding: 30px;
	width: 80% !important;
    margin: auto;
    align-items: center;
}

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) !important;
    min-height: 40px !important;
	color:white;
}
   
.ffi input[type="file"] {
    background: transparent !important;
    opacity: .21;
    border-radius: 3px;
    border: solid 1px rgba(300,300,300,0.51);
}

#i_holdingrow_image label {
    background: transparent !important;
    opacity: 0.75;
    border-radius: 3px;
    border: solid 1px #ffffff;
}

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

.jqte_toolbar {
    background: rgba(300,300,300,0.5);
}

.jqte_tool, .jqte_tool_icon, .jqte_tool_label {
    /* opacity: 0.21; */
    border-radius: 3px;
    border: solid 0px #ffffff;
}
.desc{
	object-fit: contain;
    font-family: Raleway;
    font-size: 11px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.91;
    letter-spacing: 0.6px;
    color: #fafafa;
}
.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%;
		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#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/PRPEV/Dashboard");
}
</script>

is-in-group
GroupNameconfluence-administrators, pittsburgh-administrator
IDisingroupfunc

is-in-event-cohost-list
Actionwindow.location.replace("/display/PRPEV/Dashboard");
IDisEventCohost

...

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=50559320&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/PRPEV/" + 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

entryOptionsINLINE





entryCountryentryInputINLINE

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

entryCityentryInputINLINE

city

entryCountryentryInputINLINE

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

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




flex-direction:row; display: none;entryInputINLINE


offline






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




...

ConfiForms Form Definition
additionalFormAdminsconfluence-users,pittsburgh-administrators
formNamecreateEvent
allowReadstrue
exporttrue


nameEvent Nametext

currentNameCurrent Nameread_only

pageNamePage Nametext

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

agendaAgendawysiwyg

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


agendaAgendawysiwyg

programProgramwysiwyg

cohostsCo-Hostsmultiuser

notifyNotify Cohoststruefalsecheckbox

offlineOffline Eventtruefalsecheckbox

createdPageCreated Pagepage

publishPublish Flagcheckbox

rsvpRSVP Listtrue[]multiuser

formIdForm Idread_only

countryCountryfalse[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|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|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|GP=Global Pool|GPT=Global Pool tGELF|]select

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

eventTypeEvent Typefalse[CF=City Finals|NF=National Finals|CO=Confederation Finals|GF=Global Finals|]select

privateEventPrivate Eventtruefalsecheckbox

cityCitytruefalsetext

zoomAccountZoom Accounttruefalsetext

zoomPasswordZoom Passwordtruefalsetext

watchLiveEventWatch Live Eventtruefalsetext

streamLinkLive Stream Linktruefalsetext

recordedLinkRecorded Live Stream Linktruefalsetext

countryCodeCountry Codetext

privateEventPrivate Eventtruefalsecheckbox

zoomAccountZoom Accounttruefalsetext

zoomPasswordZoom Passwordtruefalsetext

watchLiveEventWatch Live Eventtruefalsetext

streamLinkLive Stream Linktruefalsetext

recordedLinkRecorded Live Stream Linktruefalsetext

meetingIdMeeting 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,pittsburgh-administratorsRSVPCountRSVP Counttruenumberhidden


<!-- Page view count → 

confluence-users,pittsburgh-administratorspageViewCountPage View Counttruenumberhidden


confluence-users,pittsburgh-administratorssequenceSequencetruenumberhidden

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

!formId:[empty] AND _user.userInSecurityGroup(confluence-administrators):falsename=[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.currentBannerImage]&addImage1=[entry.addImage1]&removeImage1=[entry.removeImage1]&addImage2=[entry.addImage2]&removeImage2=[entry.removeImage2]&RSVPCount=[entry.RSVPCount]&startDateTimestamp=[entry.startDate]&endDateTimestamp=[entry.endDate]&offline=[entry.offline]&privateEvent=[entry.privateEvent=[entry.privateEvent]&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.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.currentBannerImage]&addImage1=[entry.addImage1]&removeImage1=[entry.removeImage1]&addImage2=[entry.addImage2]&removeImage2=[entry.removeImage2]&RSVPCount=[entry.RSVPCount]&startDateTimestamp=[entry.startDate]&endDateTimestamp=[entry.endDate]&offline=[entry.offline]&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:<]&currentImageOrganizer=[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 !

imageOrganizer]&currentBannerImage=[entry.currentBannerImage]&addImage1=[entry.addImage1]&removeImage1=[entry.removeImage1]&addImage2=[entry.addImage2]&removeImage2=[entry.removeImage2]&RSVPCount=[entry.RSVPCount]&startDateTimestamp=[entry.startDate]&endDateTimestamp=[entry.endDate]&offline=[entry.offline]&privateEvent=[entry.privateEvent]&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-->

!cohosts:[empty] AND formId:[empty]Create ConfiForms Entry25657553onCreatedentryId=[entry.formIdid]&bannerImageownedBy=[entry.bannerImagecreatedBy]&currentBannerImage=,[entry.bannerImagecohosts.asList]


<!--Update the organizer image if changedUpdate cohosts to ownedBy list on existing entry-->

!imageOrganizercohosts:[empty] AND !formId:[empty]Create ConfiForms Entry25657553onCreatedentryId=[entry.formId]&imageOrganizerownedBy=[entry.imageOrganizer.asAttachment.displayTitle]&currentImageOrganizer=createdBy],[entry.imageOrganizercohosts.asList]


<!--Update the sponsor 1 image if changedSet current attachment name on new entry-->

!sponsorimage1:[empty] AND !formId:[empty]trueCreate ConfiForms Entry25657553onCreatedentryId=[entry.formIdid]&sponsorimage1currentImage=[entry.sponsorimage1image.asAttachment.displayTitle]&currentSponsorimage1=[entry.sponsorimage1]


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

!sponsorimage2bannerImage:[empty] AND !formId:[empty]Create ConfiForms Entry25657553onCreatedentryId=[entry.formId]&sponsorimage2bannerImage=[entry.sponsorimage2.asAttachment.displayTitlebannerImage]&currentSponsorimage2currentBannerImage=[entry.sponsorimage2bannerImage]


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

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


<!--Update fields upon editthe sponsor 1 image if changed-->

!sponsorimage1:[empty] AND !formId:[empty]Create ConfiForms Entry25657553onCreatedentryId=[entry.formId]&name=[entry.name]&pageName=[entry.pageName]&currentName=[entry.name]&currentImage=[entry.currentImageformId]&sponsorssponsorimage1=[entry.sponsorssponsorimage1.asAttachment.displayTitle]&startDatecurrentSponsorimage1=[entry.startDate]&endDate=[entry.endDate]&agenda=[entry.agenda]&programsponsorimage1]


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

!sponsorimage2:[empty] AND !formId:[empty]Create ConfiForms Entry25657553onCreatedentryId=[entry.programformId]&cohostssponsorimage2=[entry.sponsorimage2.asAttachment.ownedBydisplayTitle]&createdPagecurrentSponsorimage2=[entry.createdPage]&publish=[entry.publish]&country=[entry.country]&countryCodesponsorimage2]


<!--Update the sponsor 3 image if changed-->

!sponsorimage3:[empty] AND !formId:[empty]Create ConfiForms Entry25657553onCreatedentryId=[entry.countryCodeformId]&roundsponsorimage3=[entry.round]&city=[entry.city]&eventType=[entry.eventType]&zoomAccountsponsorimage3.asAttachment.displayTitle]&currentSponsorimage3=[entry.zoomAccount]&zoomPasswordsponsorimage3]


<!--Update fields upon edit-->

!formId:[empty]Create ConfiForms EntryonCreatedentryId=[entry.zoomPasswordformId]&watchLiveEventname=[entry.watchLiveEventname]&streamLinkpageName=[entry.streamLinkpageName]&recordedLinkcurrentName=[entry.recordedLinkname]&meetingIdcurrentImage=[entry.meetingIdcurrentImage]&meetingPasssponsors=[entry.meetingPasssponsors]&topicIdstartDate=[entry.topicIdstartDate]&rtmpUrlendDate=[entry.rtmpUrlendDate]&rtmpKeyagenda=[entry.rtmpKeyagenda]&jiraQueryprogram=[entry.jiraQueryprogram]&currentSponsorimage1cohosts=[entry.sponsorimage1ownedBy]&currentSponsorimage2createdPage=[entry.sponsorimage2createdPage]&currentSponsorimage3publish=[entry.sponsorimage3publish]&currentImageOrganizercountry=[entry.imageOrganizercountry]&currentBannerImagecountryCode=[entry.currentBannerImagecountryCode]&addImage1round=[entry.addImage1round]&removeImage1city=[entry.removeImage1city]&addImage2eventType=[entry.addImage2eventType]&removeImage2zoomAccount=[entry.removeImage2zoomAccount]&RSVPCountzoomPassword=[entry.RSVPCountzoomPassword]&privateEventwatchLiveEvent=[entry.privateEvent]createdBy:watchLiveEvent]&streamLink=[entry._user]createEvent:87543585streamLink]&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.currentBannerImage]&addImage1=[entry.addImage1]&removeImage1=[entry.removeImage1]&addImage2=[entry.addImage2]&removeImage2=[entry.removeImage2]&RSVPCount=[entry.RSVPCount]&privateEvent=[entry.privateEvent]&category=[entry.category.transform(id).asList]&offline=[entry.offline]createdBy:[entry._user]createEvent:50559320


<!--Redirect new entry-->

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


<!--Redirect on update-->

!formId:[empty]Redirect to URLonCreated/display/PEV/[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

PEV50559320https://passport.theonevalley.com/display/PEV/


publisher


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


publishpublish flagcheckbox

formIdform idread_only

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




publishec


Unpublish@selfpublishecUnpublishtrueINLINEAre you sure you want to un-publish this event? It will no longer be visible to all users on the Events Dashboard!


publishpublish flagcheckbox

formIdform idread_only

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



<!--Redirect new entry-->

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

<!--Redirect on update-->

!formId:[empty]Redirect to URLonCreated/display/PR/[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]eventPCid:[entry.id]createEvent1

PEV50559320https://passport.theonevalley.com/display/PEV/

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

publishpublish flagcheckbox

formIdform idread_only

Update ConfiForms entries by filteronCreatedpublish=trueid:[entry.id]createEvent:87543585publishecUnpublish@selfpublishecUnpublishtrueINLINEAre you sure you want to un-publish this event? It will be visible to all users on the EWC Platform!

publishpublish flagcheckbox

formIdform idread_only

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

fileAttachupfileAttachupfile

eventFileNameupeventFileNameuptext

eventTitleupEvent Titleuptext

urlTitleupURL Titleuptext

dtupWhenup30EEE, MMM d yyyy, h:mm a zdatetimeinterval

eventDescriptionupEvent Descriptionuptextarea

messageBodyICSupMessage Bodyuphtml

id:fileAttachHide field

recipientupRecipientuptext

titleupTitleuptext

sequenceupSequenceuptext

trueINLINECreate Attachment[entry.id.asEntryRef(entry.eventFileNameup)].icsonCreatedfileAttachuptext/calendartrueSend EmailEWC 2021 <ewccountry@entrepreneurshipworldcup.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

trueINLINECreate Attachment[entry.id.asEntryRef(entry.eventFileName)].icsonCreatedfileAttachtext/calendartrueSend EmailEWC 2021 <ewccountry@entrepreneurshipworldcup.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

trueINLINECreate Attachment[entry.id.asEntryRef(entry.eventFileNameRemove)].icsonCreatedfileAttachRemovetext/calendartrueSend EmailEWC 2021 <ewccountry@entrepreneurshipworldcup.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

trueINLINECreate Attachment[entry.id.asEntryRef(entry.eventFileNameUpdate)].icsonCreatedfileAttachUpdatetext/calendartrueSend EmailEWC 2021 <ewccountry@entrepreneurshipworldcup.com>onCreated[entry.id.asEntryRef(entry.titleUpdate)]

[entry.id.asEntryRef(entry.

recipientUpdate

id)]

messageBodyICSUpdate

fileAttachUpdate

PEV[entry.id.asEntryRef(entry.id)]https://passport.theonevalley.com/display/PEV/

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()pittsburgh-administrators, pittsburgh-usersOkAn 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 on page creation-->

<!--

formId:asdfSend EmailEWC 2021 <ewccountry@entrepreneurshipworldcupPittsburgh Entrepreneurship Platform <pittsburgh@theonevalley.com>onCreatedACTION REQUIRED - New Event Created - [entry.pageName]SEewccountry@entrepreneurshipworldcuppittsburgh@theonevalley.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.createdPage]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 EmailEWC 2021 <ewccountry@entrepreneurshipworldcupPittsburgh Entrepreneurship Platform <pittsburgh@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,

EWC 2021 Pittsburgh Entrepreneurship Platform Team



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

...

HTML
<script>
  // 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());
    });
	$("#i_offline").waitUntilExists(() => {	
		$('#i_offline').click();
	})
    // extra precaution - set page name as event name
    $(document).mousemove(function (event) {
      $("#i_pageName").val($("#i_name").val());
    });
  }
</script>

<script>
$("#judging-admin-only").waitUntilExists(() => {
  if (isAdmin || isJudgingAdmin) {
    $("#judging-admin-only").toggleClass('display-none');
  }
});
$("#admin-only").waitUntilExists(() => {
  if (isAdmin) {
    $("#admin-only").toggleClass('display-none');
  }
});
// remove type ahead search prediction drop down for co-hosts
console.log("Before new script");
$("#s2id_i_cohosts").waitUntilExists(() => {
	$("#s2id_i_cohosts").keyup(function() {
 		let resultsCount = $('.select2-results-dept-0 ').length;
 		console.log(resultsCount);
    	if (resultsCount === 1){
        	console.log("here");
      		$('.aui-dropdown2.atlassian-select2-drop, .aui-select2-drop').removeClass("display-none");
  		} else {
        	console.log("there");
      		$('.aui-dropdown2.atlassian-select2-drop, .aui-select2-drop').addClass("display-none");
  		}  
	});
});
</script>

...