x
x
x
x
Only portrait mode is currently supported - please rotate your device.
...
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--> <!--Add cohosts to ownedBy list on new entry--> <!--Update cohosts to ownedBy list on existing entry--> <!--Set current attachment name on new entry--> <!--Update the banner image if changed--> <!--Update the 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--> <!--Redirect on update--> <!-- Create group when event is created send analytics Event--> <!–Create new page--> <!--Send email to 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, Pittsburgh Entrepreneurship Platform Team |
...
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> |
...
OneValley