Latest Posts

PowerApps How to convert string to lower case


The Lower function in Power Apps is used to convert all characters in a text string to lowercase. This function is particularly useful for standardizing text inputs, such as email addresses, usernames, or any text that needs to be case-insensitive.

PowerApps – Lower() function Syntax

Lower(Text)

  • Text: The text string you want to convert to lowercase.

PowerApps - convert string to lower case

Suppose you want to convert a hardcoded string to lowercase.

  1. Add a Label Control:
    • Insert a Label control.
    • Set the Text property of the Label to:

Lower("PowerApps")

This will display powerapps because the Lower function converts all characters to lowercase.

PowerApps - Convert User Input to Lowercase

Suppose you want to convert the text entered by the user in a Text Input control to lowercase.

  1. Add a Text Input Control:
    • Insert a Text Input control named UserInput.
    • Set the HintText property to "Enter text".
  2. Add a Label Control to Display the Lowercase Text:
    • Insert a Label control.
    • Set the Text property of the Label to:

Lower(UserInput.Text)

 

This will display the text entered in the UserInput control in lowercase.

PowerApps - Convert Text to Lowercase on Button Click

Suppose you want to convert the text entered by the user to lowercase when a button is clicked and display the result.

  1. Add a Text Input Control:
    • Insert a Text Input control named UserInput.
  2. Add a Button Control:
    • Insert a Button control named ConvertButton.
    • Set the Text property of the Button to "Convert to Lowercase".
    • Set the OnSelect property of the Button to:

Set(LowercaseText, Lower(UserInput.Text))

 


We value your Feedback:

Page URL:

Name:

Email:


Suggestion:

© 2024 Code SharePoint