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 / Shortcut for using for...
Power Apps
Answered

Shortcut for using formulas for the text field I am currently coding

(0) ShareShare
ReportReport
Posted on by

Hi, I am sure you will understand what I mean from the description below:

 

Let's say, I am currently modifying a TextInput1 (text field). The code I am currently writing will affect only the selected text field.

Let's assume that OnChange I would like to see if someone wrote commas in this text field, if yes - reset this and notify that it is forbidden to use commas.

 

If I use TextInput1.Text for this, I will have to copy and paste the code for TextInput2, TextInput3, etc. and if I have dozens of them, it would be annoying to edit this in every place.

 

Is there any formula to replace TextInput1.Text with 'the field that I am currently writing this code to'?

 

plona95_0-1673013175713.png

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,064 Most Valuable Professional on at

    Hi @plona95 ,

    You would start with (OnChange)

    If(
     "," in Self.Text,
     DoWhatever
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 366 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 99 Super User 2026 Season 1

Last 30 days Overall leaderboard