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

Hide label when EditScreen Form is in new mode and show in (edit or view)

I can't set this correctly, most answers say to place this in the OnVisible property of the label but none of my labels or text boxes have the OnVisible property, it's just not there. Only the Form has OnVisible.

 

So I tried to set it like so:
When launching the EditScreen using the new/add button:

 

WorkHard_1-1624483501451.png

 

 

And for the label visible property I set:

WorkHard_1-1624483281266.png

 

 

 

This works great but if I go back and now launch the screen in view mode, the label is still hidden until I put the screen in edit mode.

What am I missing?

 

2 REPLIES 2
v-xiaochen-msft
Community Support
Community Support

Hi @WorkHard ,

 

The onvisible property will only be triggered when you switch to the screen of the control.

I suggest you use buttons instead.

vxiaochenmsft_0-1624500693352.png

vxiaochenmsft_1-1624500699248.png

vxiaochenmsft_2-1624500707160.png

vxiaochenmsft_3-1624500749320.png

 

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

 

 

 

I still cannot see the OnVisible even when actively looking at the Screens.
Only OnSelect is available. 

WorkHard_0-1624547379971.png

 

 

 

 

 

I'm assuming you mean "Visible" not "OnVisible". In that case, where do you place this function below? In the OnVisibile property of the Form1? 

WorkHard_1-1624547511130.png

 

All my actions new, edit, view are done on the same form. I don't have multiple forms. It goes from the browse page to the edit form where I set the DisplayMode depending on what I need.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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
Top Kudoed Authors
Users online (2,621)