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