- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Using the Attachment Component
Articles Hub
Want to see all of our other articles and blogs related to UI Builder and Workspaces?
You can copy the link above and share it!
Overview
XanaduYou will:
- Create a Workspace Experience using UI Builder.
- Add an Appointment Calendar component.
- Configure its parameters to account for common pain points.
Step 1. Getting Started
1. Log in to your ServiceNow instance.
2. Navigate to Now Experience Framework > UI Builder in the filter navigator to open the UI Builder interface.
Step 2. Adding Page
1. Select the Plus button next to Pages and Variants
2. Select Create from Scratch Instead
3. Update Name to "My Appointment Calendar"
4. Click Continue
5. Then, select Looks good
6. Afterwards, select Continue
7. Select the Build responsive choice
8. Select Create
Step 3. Adding the Appointment Calendar
- In the content tree, underneath the Body, select Add Content >
- Components
- Content
- Appointment calendar
- Click Add
Step 4. Configuring the Appointment Calendar
Let's give our users the ability to change their view from Day to Week on demand
- Select your component (Appointment calendar 1) by either selecting its visualization on the page or by selecting the components name underneath the content tree on the left.
- After it has been selected, navigate to the component configuration panel to the right > Configure tab > Calendar configuration section > View > Select 'Day'
Now let's bind the time zone of the calendar to the instances calendar, to do that -
Now we will repeat steps 4.3- 4.6 for the Calendars Locale
- Underneath Calendar configuration tab, hover over Locale until you see the small, stacked circles to 'Bind Data and use scripts' > select it
2. When the Bind data to Locale pop up displays select Data types tab > Page properties > session > user > language
3. After selecting the language data pill you will see a small upward arrow to the right of the pill, select it to move the pill to the top of the window.
Lets set the appointment calendar to always show today's date when it loads
- Underneath Calendar configuration tab, hover over Selected date until you see the small, stacked circles to 'Bind Data and use scripts' > select it
function evaluateProperty({api, helpers}) {
let currentDate = new Date();
currentDate.setHours(0, 0, 0, 0);
return currentDate.toISOString();
}
Save and Test
1. In the upper right corner of the page, select Save.
Troubleshooting
Conclusion
Congratulations! 🎉 When it comes to the Appointment Calendar, the key properties like time zone, language, and the default selected date, are just the foundation of configurations. These configurations offer a personalized user experience that meets users' expectations and can be a jumping point for calendar-based workflows. Be sure to stay tuned for the series to learn more about UI Builder components!
Check out the Next Experience Center of Excellence for more resources
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
