cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sudosaurus
Post Prodigy
Post Prodigy

Power Apps image control display on New and Edit form modes

Hello,

 

I have an image control which I only want to display on the New and Edit form modes. I don't want it to appear on the View mode.

 

I've tried this to no success - any tips would be useful! 😉

 

If(SelectedItem_form.Mode = 0, false, true)

4 REPLIES 4
Jeff_Thorpe
Super User
Super User

Try this in the visible property of the image control:

SelectedItem_form.Mode <> FormMode.View



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
sudosaurus
Post Prodigy
Post Prodigy

@Jeff_Thorpe this doesnt appear to do anything, the image still displays on the view mode.

Jeff_Thorpe
Super User
Super User

I tested this in an image control on my test app and it works. If you add a label to the screen and in the text property of the label add the same formula, does it return true or false?



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
v-jefferni
Community Support
Community Support

Hi @sudosaurus ,

 

Have you solved the problem? The solution from @Jeff_Thorpe also worked well when I tested it.

 

Could you please share more details about your App? Could you confirm if there is only one Edit form that switches between different form modes?

 

If you have solved the issue with the help of above formula, please consider Accept it as the solution to help the other members find it.

 

Best regards,

Community Support Team _ Jeffer Ni

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

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 (3,227)