Announcements
Disable a form button if Name field is duplicate from existing data source
Data source : Metrics
thank you
@WarrenBelz @BCBuizer @Drrickryp
Hi @Sharinah1 ,
Try setting the DisplayMode property of the button to:
If( !IsBlank(LoopUp(Metrics, Name = DataCardValueName.Text)), DisplayMode.Disabled, DisplayMode.Edit )
You'll have to change DataCardValueName to the name of control that has the name that needs to be checked on.
Hello thank you. I forgot to mention.
Button to disable if name is existing for a specific column item.
Example:
I have columns : Name and Subject
for Subject 1, there should only be one name / no name duplicates, otherwise the button will be disabled.
If I understand correctly, the maximum number of duplicates in the Name column depends on the value in the Subject column?
If yes, the below should help.
If( CountRows(Filter(Metrics, Name = DataCardValueName.Text))< Value(DataCardValueSubject.Text), DisplayMode.Disabled, DisplayMode.Edit )
Again: you need to change the names of DataCardValueName and DataCardValueSubject to match the names of your controls.
No sorry for misunderstanding
Please refer to the table, the submit button will be disabled to avoid duplicate Terry for Section A.
So it's about the combination of name and subject that needs to be unique?
If( !IsBlank(LoopUp(Metrics, Name = DataCardValueName.Text && Subject = DataCardValueSubject.Text)), DisplayMode.Disabled, DisplayMode.Edit )
Thanks so much. Apologies for the basic question. It's now working well.
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 243 Super User 2026 Season 2
WarrenBelz 204 Most Valuable Professional
Mohsin Ali 122