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 / Conditional visibility...
Power Apps
Answered

Conditional visibility working on view but not edit form

(0) ShareShare
ReportReport
Posted on by 6

Hi all 

 

I have two conditional scenarios I'm trying to apply to my PowerApps form.  In both cases the conditions apply when the form is in view mode, but don't work when in edit mode.  

 

Case #1:

I have Yes/No fields with conditionally required test fields which must be filled if the related "Yes" field is marked as such. Visible for the conditionally required cards are set to If(DataCardValue.Value = true, true)

 

Case#2

I have an approval Yes/No field which should only be editable by the manager.  I have a distinct list with managers contact details and a field indicating if they have approval authority.  This data source was added to my model and I've set the following condition

 

Set(ManagerApprover,LookUp(DivisionMetrics,'CurrentManagerEmail'=User().Email))

-     I've tried placing this in OnStart, OnVisible, StartScreen (and combinations of the 3)

 

My data card visibility is set to ManagerApprover.Approver   where "Approver" is the field in the Manager's Registry that notes approval authority Y/N.

-     I've tried placing this in DataCard, DataCardKey, DataCardValue (and combinations of the 3)

 

 

In both cases the conditions apply when the form is in View but when Edit is selected all fields are visible/editable.  

 

 

Noting that for Case#2 the Managers may delegate their approvals to other team members, and they have a separate method of logging delegated approvals outside the form itself.  We want to retain this function. 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,275 Most Valuable Professional on at

    Hi @kbora ,

    If you put this on a Label in a card in the form - what value due you get (true/false) in View and Edit modes

    LookUp(
     DivisionMetrics,
     'CurrentManagerEmail'=User().Email)
    ).Approver

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • kbora Profile Picture
    6 on at

    It's reading false

  • WarrenBelz Profile Picture
    156,275 Most Valuable Professional on at

    @kbora ,

    Then there is your issue - it needs to be true - you may have to look at your data here.

  • kbora Profile Picture
    6 on at

    Found the problem!  My email reference was hyperlink and it needed to be text.  I duplicated the field as text, remapped the lookup and now it works perfectly. 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 421 Most Valuable Professional

#2
11manish Profile Picture

11manish 153 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 116 Super User 2026 Season 2

Last 30 days Overall leaderboard