Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

402 views 23 8
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