Notifications
Announcements
No record found.
Is it possible to have Conditional contents in the Schedule Board Booking Template?
I'm wanting to add a symbol if a Boolean field is true.
I've tried:
{#if (eq mybooleanfield true)}<b class="fa fa-star" style='color: #ffae42'></b>{/if}
and
<div style='width:{mybooleanfield}00%"><b class="fa fa-euro" style='color: #ffae42' ></b></div>Based on
<div style='width:{mybooleanfield}00%"><b class="fa fa-euro" style='color: #ffae42' ></b></div>
The only other work around I can think of is to have a numerical field linked to the Boolean, but I'd rather avoid that if I can.
I had several attempts and also discussed it with the product managers, but did not find a solution. Have therefore logged an idea: experience.dynamics.com/.../
Hi Alex/Alexander, I'm wondering... to use styles in Booking Templates should be possible: "[... go to] Scheduling Parameters and set Disable Sanitizing HTML Templates to Yes. This is required to be able to include CSS statements into the booking templates. Next, add the following HTML and CSS ..."
What in fact is missing I think is the ability to have it conditional (kind of if clauses). We also tried that without success.
What I was thinking about once for working around was, to have calculated fields on your booking entity, that are sometimes empty or conditionally show certain values. And display these in your Booking Template.
Alexander and Manuel, thanks for your replies.
The calculated field works very nicely - I had been thinking of using a flow or workflow.
The Booking Template I used is:
<div style='line-height: 11px !important; width: 99%; overflow: hidden; display: block; text-overflow: ellipsis;'><b class="fa fa-star" style='{solution_scheduleboardstyle}"></b>WO<b>{msdyn_msdyn_workorder_bookableresourcebooking_WorkOrder.msdyn_name}</b><br/><b>{msdyn_msdyn_workorder_bookableresourcebooking_WorkOrder.msdyn_account_msdyn_workorder_ServiceAccount.name}</b><br/>{msdyn_msdyn_workorder_bookableresourcebooking_WorkOrder.msdyn_workordertype}</div>
<div style='line-height: 11px !important; width: 99%; overflow: hidden; display: block; text-overflow: ellipsis;'>
<b class="fa fa-star" style='{solution_scheduleboardstyle}"></b>
WO<b>{msdyn_msdyn_workorder_bookableresourcebooking_WorkOrder.msdyn_name}</b><br/>
<b>{msdyn_msdyn_workorder_bookableresourcebooking_WorkOrder.msdyn_account_msdyn_workorder_ServiceAccount.name}</b><br/>
{msdyn_msdyn_workorder_bookableresourcebooking_WorkOrder.msdyn_workordertype}</div>
Where solution_scheduleboardstyle is set to color: #ffae42; display: inline; or display: none; through the calculated field
color: #ffae42; display: inline;
display: none;
Alexander's Idea posting would be an improvement to the product and would allow greater flexibility, without needing this sort of work around.
---
Additional notes:
Disable Sanitizing HTML Templates
Yes
<style> .yes {color: #ffae42; display: inline;} .no {display: none;} </style>
{new_msdyn_workorderservicetask_bookableresourcebooking_new_msdyn_workorderservicetask.weconn_higheffort}
i am using this line of code to my field value in Custome booking template. weconn_higheffort is field which gives result as yes or no. Can you please help me how can i create if condition for this line of code
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 55 Super User 2025 Season 2
Daniyal Khaleel 27 Most Valuable Professional
Soundari 15