Jump to content
  • 0

Labels calendar datapage



4 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:

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";


The text may be changed according to your preference.



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


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.

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.

  • Create New...