cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JR-BejeweledOne
Super User
Super User

DataCard Validation

I am wanting to set a font color on a data card based on a validation formula and am getting an eval error.

 

This is a SharePoint form, and the column type in SharePoint is a number.

 

The error is "Incompatible type.  We can't evaluate your formula because the values being compared in the formula aren't the same type".  There aren't any property 'overloads' for DataCardValue2 other than visual properties and the text property which won't work because it needs to be a number, so I am not sure how to revise this.

 

Modformula.png



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.
1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User
Super User

Try:

If(IsBlank(DataCvarValue2) And Mod(Value(DataCvarValue2.Text),5)<>0,Green,RGBA(56, 96, 178, 1))
------------

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.

View solution in original post

1 REPLY 1
eka24
Super User
Super User

Try:

If(IsBlank(DataCvarValue2) And Mod(Value(DataCvarValue2.Text),5)<>0,Green,RGBA(56, 96, 178, 1))
------------

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.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,296)