ProperCase
→ stringConverts the first letter of each word to uppercase and the rest to lowercase (title case).
Available in:
Email
CloudPage
Automation
Triggered Send
Syntax
Platform.Function.ProperCase(value)
1 argument
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
value |
string | Yes | String to convert to title case |
Examples
var name = Platform.Function.ProperCase("JANE SMITH");
Write(name); // "Jane Smith"
var city = Platform.Function.ProperCase("new york");
Write(city); // "New York"