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 / Disabling a Button bas...
Power Apps
Unanswered

Disabling a Button based on a Date Column in Dataverse Table.

(0) ShareShare
ReportReport
Posted on by 72

Hi All,

 

I'm at a loss, as I've tried what feels like every combination under the sun, to disable a button based on a date in my Dataverse Table.

 

I've tried if/lookup combinations, I've tried if statements on their own, I've tried countrow formulas. None of them work 🤯😫

 

I have an app which requires users to input data on a daily basis. High priority, includes a RecordDate, and a Company - amongst other float-type data.

 

To prevent duplicates from happening, I want to disable the button which disables the form navigation button for each specific title, of which there are three, based on data that already exists.

 

So far, I have tried (also without the "DateValue()":

 

If(

Title2.Text = varCompany in MyRecordTable.Company

&&

DateValue(Date1.Text) = varDate in MyRecordTable.RecordDate,

Disabled, Edit)

 

I've also tried a Lookup against a specific button:

 

If(

LookUp(

            MyRecordTable, RecordDate = Date1.Text, CompanyID) = DateValue(varDate)

            &&

            MyRecordTable, Company = Title2.Text, CompanyID) = varCompany

            Disabled, Edit

)

 

I get a delegation warning against the equals where datevalue(varDate) because the data types arent the same. And the same warning occurs if I use the Value() function instead.

 

Can anybody see where I'm going wrong, as it's driving me crazy 😅

 

Please and thank you in advance.

 

W.

 

Categories:

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard