web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Check if string is exi...
Power Apps
Unanswered

Check if string is existing in a data source and substitute it in a text label

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Good day,

 

I have a data source and a column name "animals" that contains cat,dog,fish,bird and I have a text input where the user can type in words.

 

I want to substitute only the word "cat,dog,fish,bird" that exist in my data source column name if the user types in for a example "The cat is big" and turn it into and display into a text label "The boy is big" .

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    Not sure if this is what you mean but with a TextInput box  and a label, 

    Switch(TextInput1.Text,"fish","boy","bird","girl","dog","fido","cat","midnight")

    For a dropdown, the label would be:

    Switch(Dropdown1.Selected.Value,"fish","boy","bird","girl","dog","fido","cat","midnight")

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Drrickryp  .Thank you for your response, but is there a way to check if the inputted text has a match with the data source?

    For example, the data source name would be "Animals" and it contains "dog, cat, bird, lion, fish, etc." and a text input. For example a user paste a word in the text input like "The dog is small" is it possible to automatically validate if a word is existing in the data source "Animals" and change/substitute it if its existing like "The boy is small".

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 426

#2
WarrenBelz Profile Picture

WarrenBelz 381 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard