cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
burliad
Helper III
Helper III

Incompatible type error on Edit Form

Hi All,

 

Not sure why I am getting this error.  I think it has something to do with the Mode=Edit but not sure how to correct it.

 

If(EditForm1.Mode=Edit, Parent.Default, User().FullName)

 

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User
Super User

The FormMode.Edit specifically is the for Form operations. However there is also a DisplayMode.Edit, so power apps has to figure out whether you are referring to DisplayMode.Edit Or  FormMode.Edit. 

Just stating Mode=Edit could be confusing as to DisplayMode or FormMode

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

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

View solution in original post

3 REPLIES 3
burliad
Helper III
Helper III

Think I found it.  I used:

If(EditForm1.Mode=FormMode.Edit,Parent.Default, User().FullName)

 

It would still be nice to know the difference between using Mode=Edit and FormMode.Edit

eka24
Super User
Super User

The FormMode.Edit specifically is the for Form operations. However there is also a DisplayMode.Edit, so power apps has to figure out whether you are referring to DisplayMode.Edit Or  FormMode.Edit. 

Just stating Mode=Edit could be confusing as to DisplayMode or FormMode

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

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

Got it, that makes sense thank you for explaining!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,461)