About this article
Proper() is a function that converts a piece of text to proper case meaning that the first letter of every word is capitalized.
Pre-requisites
|
Syntax
Syntax | {{Proper(text)}} |
Input | text |
Output | Proper case version of text |
Example 1
Using the Proper() function to convert text to proper case
Binding | {{Proper("this is a title")}} |
Output | "This Is A Title" |
Example 2
Using the IfElse() function to convert text Form.Title to proper case if a checkbox is checked.
Binding | {{IfElse(Form.ConvertToProperCheckbox, Proper(Form.Title), Form.Title)}} | |
Input | Form.Title = "this is a title" | Form.Title = "this is a title" |
Condition | Checkbox checked = True | Checkbox checked = False |
Output | "This Is A Title" | "this is a title" |
Example 3
Using the IfElse() function to convert text Form.Title to proper case if a dropdown is set to "Title".
Binding | {{IfElse(Equals(Form.HeadlineType.Name, "Title"), Proper(Form.Title), Form.Title)}} | |
Input | Form.Title = "this is a title" | Form.Title = "this is a title" |
Condition | "Title" selected in dropdown = True | "Title" selected in dropdown = False |
Output | "This Is A Title" | "this is a title" |
Comments
0 comments
Article is closed for comments.