Jump to content
  • 0

Labels calendar datapage


thisisme
 Share

Question

3 answers to this question

Recommended Posts

  • 0

Hello!! You can achieve this using JS. Add Header/Footer on your DataPage and paste this code below:

<script>
document.addEventListener('DataPageReady', function (event) {

document.getElementsByClassName("cbResultSetCalendarHeaderCell")[0].innerText = "MON";

document.getElementsByClassName("cbResultSetCalendarHeaderCell")[1].innerText = "TUE";

document.getElementsByClassName("cbResultSetCalendarHeaderCell")[2].innerText = "WED";

document.getElementsByClassName("cbResultSetCalendarHeaderCell")[3].innerText = "THU";

document.getElementsByClassName("cbResultSetCalendarHeaderCell")[4].innerText = "FRI";

document.getElementsByClassName("cbResultSetCalendarHeaderCell")[5].innerText = "SAT";

document.getElementsByClassName("cbResultSetCalendarHeaderCell")[6].innerText = "SUN";

});
</script>

The text may be changed according to your preference.

 

image.thumb.png.eb7b9f16970661a19523c6924ffac88d.png

Link to comment
Share on other sites

  • 0

Hi @autonumber - thanks for this! For the month above the weekdays, you can use a JS that will check the content and if found then it will change the label.

For example:

var month= document.querySelector("li[class*='cbResultSetCalendarCaption']").textContent;

if (month.indexOf("février") >= 0){

document.querySelector("li[class*='cbResultSetCalendarCaption']").textContent = "Febuero";

}

else if (month.indexOf("mars") >= 0){

document.querySelector("li[class*='cbResultSetCalendarCaption']").textContent = "Mar";

}

Hope it helps!

Link to comment
Share on other sites

  • 0

Hi,

Just to add something, one of their support provided me this Caspio HowTo link that tackles information about Caspio Calendar DataPage: https://howto.caspio.com/datapages/calendars/calendars/

I combined it with their tutorial on how to create date-specific new record links in Calendar DataPages, which really fit the requirements of my dream web application: https://howto.caspio.com/tech-tips-and-articles/common-customizations/how-to-create-date-specific-new-record-links-in-calendar-datapages/
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...