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.
Comment: Reverted from v. 118

...

ConfiForms Form Definition
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

agendaAgendawysiwygtextarea

programProgramwysiwygtextarea

cohostsCo-Hostsmultiuser

notifyNotify Cohoststruefalsecheckbox

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| Fed. Saint|MD=Moldova|MC=Monaco|MN=Mongolia|ME=Montenegro|MA=Morocco|MZ=Mozambique|MM=Myanmar|NA=Namibia|NR=Nauru|NP=Nepal|NL=Netherlands|NZ=New Zealand|NI=Nicaragua|NE=Niger|NG=Nigeria|KP=North Korea|MK=North Macedonia|NO=Norway|OM=Oman|PK=Pakistan|PW=Palau|PS=Palestine|PA=Panama|PG=Papua New Guinea|PY=Paraguay|PE=Peru|PH=Philippines|PL=Poland|PT=Portugal|RO=Romania|RU=Russia|RW=Rwanda|WS=Samoa|BQSA=Saba|SM=San Marino|ST=Sao Tome Principe|SA=Saudi Arabia|SN=Senegal|RS=Serbia|SC=Seychelles|SL=Sierra Leone|SG=Singapore|SK=Slovakia|SI=Slovenia|SB=Solomon Islands|SO=Somalia|ZA=South Africa|KR=South Korea|SS=South Sudan|ES=Spain|LK=Sri Lanka|SEBQ=Saint Eustatius|KN=Saint Kitts Nevis|LC=Saint Lucia|MF=Saint Maarten|VC=Saint Vincent and the Grenadines|SD=Sudan|SR=Suriname|SE=Sweden|CH=Switzerland|SY=Syria|TJ=Tajikistan|TZ=Tanzania|TH=Thailand|TG=Togo|TO=Tonga|TT=Trinidad and Tobago|TN=Tunisia|TR=Turkey|TM=Turkmenistan|TV=Tuvalu|UG=Uganda|UA=Ukraine|AE=United Arab Emirates|GB=United Kingdom|US=United States|USI= United States Idea|UY=Uruguay|UZ=Uzbekistan|VU=Vanuatu|VE=Venezuela|VN=Vietnam|YE=Yemen|ZM=Zambia|ZW=Zimbabwe|ZRAN= Zranesia|GP=Global Pool|] select

countryCodeCountry Codetext

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


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

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


RSVPCountRSVP Counttruenumberhidden

sequenceSequencetruenumberhidden

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

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

_today:>[entry.startDate]Invalid start date - please ensure the start date is in the future.startDate:INVALIDValidation rulestartDate

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

<!–Missing countryCode validation-->

countryCode:NOTFOUNDMissing 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]&currentSponsorimage1=[entry.sponsorimage1]&currentSponsorimage2=[entry.sponsorimage2]&currentSponsorimage3=[entry.sponsorimage3]&currentImageOrganizer=[entry.imageOrganizer]&addImage1=[entry.addImage1]&removeImage1=[entry.removeImage1]&addImage2=[entry.addImage2]&removeImage2=[entry.removeImage2]&RSVPCount=[entry.RSVPCount]&startDateTimestamp=[entry.startDate]&endDateTimestamp=[entry.endDate]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]&currentSponsorimage1=[entry.sponsorimage1]&currentSponsorimage2=[entry.sponsorimage2]&currentSponsorimage3=[entry.sponsorimage3]&currentImageOrganizer=[entry.imageOrganizer]&addImage1=[entry.addImage1]&removeImage1=[entry.removeImage1]&addImage2=[entry.addImage2]&removeImage2=[entry.removeImage2]&RSVPCount=[entry.RSVPCount]&startDateTimestamp=[entry.startDate]&endDateTimestamp=[entry.endDate]id:[entry.formId]Lookup and set value

<!--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 organizer image if changed-->

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


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

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


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

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


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

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


<!--Update fields upon edit-->

!formId:[empty]Create ConfiForms EntryonCreatedentryId=[entry.formId]&name=[entry.name]&currentName=[entry.name]&pageName=[entry.pageName]&currentImage=[entry.currentImage]&sponsors=[entry.sponsors]&startDate=[entry.startDate]&endDate=[entry.endDate]&agenda=[entry.agenda]&program=[entry.program]&cohosts=[entry.ownedBy]&createdPage=[entry.createdPage]&publish=[entry.publish]&country=[entry.country]&countryCode=[entry.countryCode]&round=[entry.round]&addImage1=[entry.addImage1]&removeImage1=[entry.removeImage1]&addImage2=[entry.addImage2]&removeImage2=[entry.removeImage2]&RSVPCount=[entry.RSVPCount]createdBy:[entry._user]createEvent:81517851


<!--Redirect new entry-->

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


<!--Redirect on update-->

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


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

formId:[empty]Run JavaScriptonCreated




<!–Create new page-->

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



id:[entry.id]createEvent1

[entry.sponsorimage2.asEntryRef(entry.sponsorimage2)][entry.sponsorimage1.asEntryRef(entry.sponsorimage1)][entry.id.asEntryRef(entry.startDate.formatDate(dd))][entry.createdPage.asEntryRef(entry.createdPage)][entry.program.asEntryRef(entry.program.replaceCRLFWithBR)][entry.sponsorimage3.asEntryRef(entry.sponsorimage3)][entry.agenda.asEntryRef(entry.agenda.replaceCRLFWithBR)][entry.name.asEntryRef(entry.name)][entry.id.asEntryRef(entry.endDate.convertDate(MM/dd/YYYY HH:mm zzz, UTC))][entry.imageOrganizer.asEntryRef(entry.imageOrganizer)][entry.id.asEntryRef(entry.startDate.formatDate(EEE, MMM d yyyy, h:mm a z))][entry.id.asEntryRef(entry.id)][entry.id.asEntryRef(entry.startDate.formatDate(MMM))][entry.RSVPCount.asEntryRef(entry.RSVPCount)][entry.id.asEntryRef(entry.startDate.convertDate(MM/dd/YYYY HH:mm zzz, UTC))][entry.countryCode.asEntryRef(entry.countryCode)][entry.id.asEntryRef(entry.endDate.formatDate(EEE, MMM d yyyy, h:mm a z))]



publisher


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




publishec


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




f

fileAttachfileAttachfile

eventFileNameeventFileNametext

eventTitleEvent Titletext

dtWhen30EEE, MMM d yyyy, h:mm a zdatetimeinterval

eventDescriptionEvent Descriptiontextarea

messageBodyICSMessage Bodytextarea

id:fileAttachHide field

recipientRecipienttext

titleTitletext

sequenceSequencetext

trueINLINE



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




Send EmailEWC 2020<platform@entrepreneurshipworldcup.com>onCreated[entry.id.asEntryRef(entry.title)][entry.id.asEntryRef(entry._user)]

messageBodyICS

fileAttach



fRemoveSaveRemove

fileAttachRemovefileAttachRemovefile

eventFileNameRemoveeventFileNameRemovetext

eventTitleRemoveEvent Title Removetext

dtRemoveWhenRemove30EEE, MMM d yyyy, h:mm a zdatetimeinterval

eventDescriptionRemoveEvent Description Removetextarea

messageBodyICSRemoveMessage Body Removetextarea

id:fileAttachRemoveHide field

recipientRemoveRecipient Removetext

titleRemoveTitle Removetext

sequenceRemoveSequence Removetext

trueINLINE



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




Send EmailEWC 2020<platform@entrepreneurshipworldcup.com>onCreated[entry.id.asEntryRef(entry.titleRemove)][entry.id.asEntryRef(entry._user)]

messageBodyICSRemove

fileAttachRemove



fUpdateSaveUpdate

fileAttachUpdatefileAttachUpdatefile

eventFileNameUpdateeventFileNameUpdatetext

eventTitleUpdateEvent Title Updatetext

dtUpdateWhenUpdate30EEE, MMM d yyyy, h:mm a zdatetimeinterval

eventDescriptionUpdateEvent Description Updatetextarea

messageBodyICSUpdateMessage Body Updatetextarea

id:fileAttachUpdateHide field

recipientUpdateRecipient Updatetext

titleUpdateTitle Updatetext

sequenceUpdateSequence Updatetext

trueINLINE



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




Send EmailEWC 2020<platform@entrepreneurshipworldcup.com>onCreated[entry.id.asEntryRef(entry.titleUpdate)][entry.id.asEntryRef(entry.recipientUpdate)]

messageBodyICSUpdate

fileAttachUpdate


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

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

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


<!–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 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 2020 <platform@entrepreneurshipworldcup.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 2020 Team


...

HTML
<script>

const pollingUntilElementExists = (selector, callback) => {
  let element = $(selector)[0];
  if (element && parseInt($("#i_startDateTimestamp").val()) !== NaN) {
    callback();
  } else {
    setTimeout(() => pollingUntilElementExists(selector, callback), 200);
  }
}

const setDateFields = () => {
  $("#i_startDateTimestamp").waitUntilExists(() => {
    setTimeout(() => {
      var startDate = parseInt($("#i_startDateTimestamp").val());
      var endDate = parseInt($("#i_endDateTimestamp").val());
    
      console.log($("#i_startDateTimestamp").val())
      console.log($("#i_endDateTimestamp").val())
      console.log(`startDate: ${startDate}`)
      console.log(`endDate: ${endDate}`)
    
      var startDateLocalTime = formatDateLong(new Date(startDate))
      var startDateFixed = '';
    
      var endDateLocalTime = formatDateLong(new Date(endDate));
      var endDateFixed = '';
    
      console.log(`startDateLocalTime: ${startDateLocalTime}`)
      console.log(`endDateLocalTime: ${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")
        }
      }
    
      $("#i_startDate").val(startDateFixed);
      $("#i_endDate").val(endDateFixed);
      console.log($("#i_startDate").val())
      console.log($("#i_endDate").val())
    }, 20001500)
  })
}

pollingUntilElementExists("#i_startDateTimestamp", setDateFields);
</script>

<script>
console.log('please god run this')
</script>

...