Purpose if you want to highlight certain dates.
This is a guide on how to add this library and to use their attributes dots.
Reference: Attributes | V-Calendar
Step 1 - CDN inside of the DOM Header Insertions
<link rel='stylesheet' href='https://unpkg.com/v-calendar/lib/v-calendar.min.css'>
<script src='https://unpkg.com/v-calendar'></script>
Step 2 - Inside your HTML snippet
<v-calendar
:from-date="new Date(2022, 3, 1)"
:attributes="model.attributes"> </v-calendar>
Step 2 - Inside Page Info > namedActions > onFormLoad
- add a function snippet, and the following code
model.attributes = [{
dot: true,
dates: [
new Date(2022, 3, 1), // Apr 1st
new Date(2022, 3, 10), // Apr 10th
new Date(2022, 3, 22), // Apr 22nd
]
}]
Just an important note,
these date picker libraries want a specific date (UTC). So if you are sending dates from FM to FMBF, i’ve found its best to convert the dates in the front end using moment, then convert them back to your FM format if you’re changing the information and sending it back.