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 / A condition for adding...
Power Apps
Answered

A condition for adding a record in the form

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, I have a question, if I take data about items type and sellers from the database on the basis of it, I can somehow prevent adding such a record to the list? The main idea is to make it impossible to add an item if it is not in the database.

Categories:
I have the same question (0)
  • Verified answer
    eka24 Profile Picture
    20,925 on at

    Generally, you can use this on the submit button:

    If( IsBlank(LookUp(Datasource,Column1=TextBoxOnForm.Text).Column1),
    SubmtForm(FormName),Notify(“Record Already Exist”))

     

    Give more details including screen shot if you have issues

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

    Please Subscribe to my Youtube Channel

     

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Another method is to use Dropdowns with Items set to the existing items from the database, force users to choose allowed values rather than typing in freely.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard