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 / I want to restrict a u...
Power Apps
Answered

I want to restrict a users ability to input certain data more than once. Is this possible?

(0) ShareShare
ReportReport
Posted on by 18

For example, I have an app that users to create an input that is sent to a SQL server. When a user inputs data one of the data inputs requires them to input their name. I want to make it so that once a user inputs data with a certain name, then that name can only be used once. If it is used again, then an error message will appear. Is this possible?

 

For example: Here is a situation where an input was made with the name 'Robert' at Daytona1. Then, another input was made after that also used 'Robert' at Daytona1. I want to make it so that the second input could not make an input with 'Robert'; an error message should pop-up instead. Is this possible? This condition should only apply to the name field. 

QuestionTime_1-1595256995608.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @QuestionTime ,

     

    How did you create a new input? 

    If it was through the EditForm, just try to add some logic condition before submitform.

    If(IsBlank(LookUp('Table Name', Name=TextInputName.Text).Name), SubmitForm(FormName), Notify("Name already exists!",NotificationType.Error))

    Hope this helps.

    Sik

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 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard