It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Confiform calendar - month view - only whole day

Hi!

Is it possible to use the calendar view only in month view displaying a whole day? I need to make a calendar displaying my 70 colleagues holiday plans and I want to show them all (not with clicking on 'show me extras'.

Greetings

Hanne

2 answers

0 votes

Can you help with this question @Alex_Medved__ConfiForms_?

It is possible, but with a bit of scripting. You need to make a calendar cell to be as large as you need

See the following snippet

<script>
function setCfCalendarHeight() {
if ( AJS.$('div.cf_f_list').children().length > 0) {
AJS.$('div.cf_f_list').find("div[id^='calendar']").confiFormsCalendar('option', 'height', 950);
} else {
setTimeout(function(){ setCfCalendarHeight()}, 200);
}
}
AJS.toInit(function () {
setCfCalendarHeight();

AJS.$(AJS.$('div.cf_f_list').find('> table > tbody > tr > td')[0]).css('width', '75%');
AJS.$(AJS.$('div.cf_f_list').find('> table > tbody > tr > td')[1]).css('max-width', '25%');
AJS.$(AJS.$('div.cf_f_list').find('> table > tbody > tr > td')[1]).css('word-wrap', 'break-word');
AJS.$(AJS.$('div.cf_f_list').find('> table > tbody > tr > td')[1]).find('> div').css('max-height', '750px');
});


</script>

We add this via HTML macro for example, and that reinitiates the calendar with a custom height.

In this particular example - 950 pixels

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What project did you transition or start on Confluence with the shift to remote work?

It’s been great to hear from fellow users over the last few weeks about the best tips and fun moments you’ve had working on Confluence since the transition to working remote. I’d love to keep the c...

109 views 3 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you