Only portrait mode is currently supported - please rotate your device.
Page History
...
HTML |
---|
<script>
$(window).on('load', function(){
$("#uploadButton1").click(() => {
$("#i_sponsorimage1").click();
})
$("#i_currentSponsorimage1").waitUntilExists(() => {
setTimeout(function(){
console.log("Wait until exists starts");
var currentsp1 = $('#i_currentSponsorimage1').val();
console.log("CURRENT SP1 value", currentsp1);
if(currentsp1 !== ""){
$( "#s1upload-insert" ).remove()
console.log("CURRENT SPONSOR IS NOT EMPTY");
var d1 = document.getElementById('uploadButton1');
d1.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="s1upload-insert">${currentsp1}</div>`);
}
}, 1200);
});
$("#i_sponsorimage1").change(function(){
$( "#s1upload-insert" ).remove()
var logo1 = document.getElementsByClassName("up-file")[2].value.split("\\").pop();
var d1 = document.getElementById('uploadButton1');
d1.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="s1upload-insert">${logo1}</div>`);
});
$("#uploadButton2").click(() => {
$("#i_sponsorimage2").click();
})
$("#i_currentSponsorimage2").waitUntilExists(() => {
setTimeout(function(){
var currentsp2 = $('#i_currentSponsorimage2').val();
console.log("currentsp2 value", currentsp2);
if(currentsp2 !== ""){
$( "#s2upload-insert" ).remove()
var d2 = document.getElementById('uploadButton2');
d2.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="s2upload-insert">${currentsp2}</div>`);
}
}, 1200);
});
$("#i_sponsorimage2").change(function(){
$( "#s2upload-insert" ).remove()
var logo2 = document.getElementsByClassName("up-file")[3].value.split("\\").pop();
var d2 = document.getElementById('uploadButton2');
d2.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="s2upload-insert">${logo2}</div>`);
});
$("#uploadButton3").click(() => {
$("#i_sponsorimage3").click();
})
$("#i_currentSponsorimage3").waitUntilExists(() => {
setTimeout(function(){
var currentsp3 = $('#i_currentSponsorimage3').val();
console.log("currentsp3 value", currentsp3);
if(currentsp3 !== ""){
$( "#s3upload-insert" ).remove()
var d3 = document.getElementById('uploadButton3');
d3.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="s3upload-insert">${currentsp3}</div>`);
}
}, 1200);
});
$("#i_sponsorimage3").change(function(){
$( "#s3upload-insert" ).remove()
var logo3 = document.getElementsByClassName("up-file")[4].value.split("\\").pop();
var d3 = document.getElementById('uploadButton3');
d3.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="s3upload-insert">${logo3}</div>`);
});
$("#uploadButton4").click(() => {
$("#i_imageOrganizer").click();
})
$("#i_currentImageOrganizer").waitUntilExists(() => {
setTimeout(function(){
var currentimgorg = $('#i_currentImageOrganizer').val();
if(currentimgorg !== ""){
$( "#currentimgorg-insert" ).remove()
var d4 = document.getElementById('uploadButton4');
d4.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="currentimgorg-insert">${currentimgorg}</div>`);
}
}, 1200);
});
$("#i_imageOrganizer").change(function(){
$( "#currentimgorg-insert" ).remove()
var logo4 = document.getElementsByClassName("up-file")[0].value.split("\\").pop();
var d4 = document.getElementById('uploadButton4');
d4.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="currentimgorg-insert">${logo4}</div>`);
});
$("#uploadButton5").click(() => {
$("#i_bannerImage").click();
})
$("#i_currentBannerImage").waitUntilExists(() => {
setTimeout(function(){
var currentBannerImage = $('#i_currentBannerImage').val();
if(currentBannerImage !== ""){
$( "#currentBannerImage-insert" ).remove()
var d5 = document.getElementById('uploadButton5');
d5.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="currentBannerImage-insert">${currentBannerImage}</div>`);
}
}, 1200);
});
$("#i_bannerImage").change(function(){
$( "#currentBannerImage-insert" ).remove()
var logo5 = document.getElementsByClassName("up-file")[1].value.split("\\").pop();
var d5 = document.getElementById('uploadButton5');
d5.insertAdjacentHTML('afterend', `<div class="file-upload-name" id="currentBannerImage-insert">${logo5}</div>`);
});
});
</script>
<script>
function checkCohosts(){
var currentCohosts = $("#i_cohosts").val();
var previousCohosts = "[entry.cohosts.asList]";
var diffCohosts = previousCohosts.localeCompare(currentCohosts);
const diff = (diffMe, diffBy) => diffMe.split(diffBy).join('')
var diffStr = "";
if (diffCohosts === -1){
diffStr = diff(previousCohosts, currentCohosts);
analytics.track("cohostsAdded", {
"name": "[entry.name]",
"entryId": "[entry.id]",
"pageName": "[entry.pageName]",
"country": "[entry.country.label]",
"round": "[entry.round]",
"cohosts": diffStr,
});
}
if (diffCohosts === 1){
diffStr = diff(previousCohosts, currentCohosts);
analytics.track("cohostsRemoved", {
"name": "[entry.name]",
"entryId": "[entry.id]",
"pageName": "[entry.pageName]",
"country": "[entry.country.label]",
"round": "[entry.round]",
"cohosts": diffStr,
});
}
}
</script> |
ConfiForms Form Definition | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<!-- Page view count → <!–Missing countryCode validation→ <!-- --> <!--Load the current field values--> <!--Load the current field values (ADMIN)--> <!--Don't allow events in the past→ <!--Don't allow end date earlier than start date--> endDate:< <!--Add cohosts to ownedBy list on new entry--> !cohosts:[empty] AND formId:[empty]Create ConfiForms EntryonCreatedentryId<!--Update cohosts to ownedBy list on existing entry--> !cohosts:[empty] AND !formId:[empty]Create ConfiForms EntryonCreatedentryId<!--Set current attachment name on new entry--> formId:[empty]trueCreate ConfiForms EntryonCreatedentryId<!--Update the banner image if changed--> !bannerImage:[empty] AND !formId:[empty]Create ConfiForms Entry25657553onCreatedentryId<!--Don't allow events in the past→ <!--Don't allow end date earlier than start date--> <!--Add cohosts to ownedBy list on new entry <!--Update the organizer image if changed--> <!--Update the sponsor 1 image if changedUpdate cohosts to ownedBy list on existing entry--> <!--Update the sponsor 2 image if changedSet current attachment name on new entry--> !sponsorimage2:[empty] AND !<!--Update the sponsor 3 banner image if changed--> <!--Update fields upon editthe organizer image if changed--> <!--Update the sponsor 1 image if changed--> <!--Update the sponsor 2 image if changed--> <!--Update the sponsor 3 image if changed--> <!--Update fields upon edit--> <!--Redirect new entry--> formId:[empty]Redirect to URLonCreated/display/EV/[entry.pageName]<!--Redirect on update--> !formId:[empty]Redirect to URLonCreated/display/EV/[entry.pageName]<!--Redirect new entry--> <!--Redirect on update--> <!-- Create group when event is created send analytics Event--> <!-- Create group when event is created send analytics Event--> formId:[empty]Run JavaScriptonCreated!cohosts=[entry.cohosts]var currentCohosts = $("#i_cohosts").val(); var previousCohosts = "[entry.cohosts.asList]"; var diffCohosts = previousCohosts.localeCompare(currentCohosts); const diff = (diffMe, diffBy) => diffMe.split(diffBy).join('') var diffStr = ""; console.log("currentCohosts", currentCohosts); console.log("previousCohohosts", previousCohosts); if (diffCohosts === -1){ diffStr = diff(previousCohosts, currentCohosts); analytics.track("cohostsAdded", { "name": "[entry.name]", "entryId": "[entry.id]", "pageName": "[entry.pageName]", "country": "[entry.country.label]", "round": "[entry.round]", "cohosts": diffStr, }); } if (diffCohosts === 1){ diffStr = diff(previousCohosts, currentCohosts); analytics.track("cohostsRemoved", { "name": "[entry.name]", "entryId": "[entry.id]", "pageName": "[entry.pageName]", "country": "[entry.country.label]", "round": "[entry.round]", "cohosts": diffStr, }); } <!–Create new page--> <!--Send email to ESG@gsvlabs.com on page creation--> <!-- --> <!–Update entry with created page url--> <!–Update entry with created page update url--> <!-- Copy Banner Image to attachments bank --> <!-- Copy Organizer image to attachments bank --> <!--Copy Sponsor 1 image to attachments bank--> <!--Copy Sponsor 2 image to attachments bank--> <!--Copy Sponsor 3 image to attachments bank--> <!--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, ESG 2020 Team |
...