Views:

Issue


We’re going to enforce a standard signature; however some people work different hours, these need to be included in the signature.
 

Solution


Create a field which will return the Office Hours of a Staff Member

Below are the steps:
 
1. Log into your Crossware portal page > Fields Section
 
 
 
2. Select the FORMULA tab > Click on Create formula field
 

3. New Field Settings 

Field Name: OfficeHour
Formula (C#): Copy and paste the code snippet attached (OfficeHoursTemplate.txt) attached into the C# Editor (see step 5 below)
Unescape Formula: No
Exclude from Cache: No


4. Update the C# Code for your own team


"Name of Person": Display Name of the Person eg "Jane Smith"

"Office Hours Go Here": Text of Hours e.g. "M W F 9-12"

default: field is set to "" but can be changed e.g "M-F 9.00-5.00"



Adding More People: Copy and Paste the Highlighted Code to above the start of the next "case" statement:


5. Click SAVE & CLOSE


 

6. Re-open the formula field > Click Send Test Email
 



 

7. Apply the Field to a Signature or Block > SAVE & CLOSE Send Test Email



Confirm the Office Hours are displaying correctly.



You can find code here:

Related Products: CMS GWS, CMS M365, Designer 6 (for CMS M365)