Dynamic Strings can be used in Custom Pages to automatically and dynamically display your Platform's Name and Colors or the logged in User's details.
Below are currently supported dynamic strings for use in your page's HTML or CSS:
HTML
These strings are to be used in the HTML code.
This is the platform name as set under Admin > Settings.
<%=metadata.account.ClientName%>
Example:
<h1>Welcome to <%=metadata.account.ClientName%></h1>
First Name:
<%=metadata.user.FirstName%>
Full Name:
<%=metadata.user.FullName%>
Example:
<h1>Welcome <%=metadata.user.FirstName%></h1>
CSS
These strings are to be used in the HTML code. Insert them where the color code would normally go.
<%=metadata.account.PrimaryColor%>
<%=metadata.account.PrimaryTextColor%>
<%=metadata.account.SecondaryColor%>
<%=metadata.account.SecondaryTextColor%>
<%=metadata.account.HighlightColor%>
Example:
h1 {
color: <%=metadata.account.HighlightColor%>;
}
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article