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 / Name visible based on ...
Power Apps
Answered

Name visible based on button click

(0) ShareShare
ReportReport
Posted on by 2,249
If the checkbox "I do not know vendor name" is checked: The Vendor Name field becomes disabled  and submit button should be disabled
 
Categories:
I have the same question (0)
  • MiDer Profile Picture
    139 on at
    Not the cleanest way, but should works:

    On load of the form set 
    UpdateContext({ctx_VendorUnknown: false})
     
    On Uncheck of the checkbox:
    UpdateContext({ctx_VendorUnknown: false})
     
    On check of the checkbox:
    UpdateContext({ctx_VendorUnknown: true})
     
    Displaymode for the field / button then 
    Switch(
        ctx_VendorUnknown,
         false, DisplayMode.Edit,
         true , DisplayMode.Disabled,
    DisplayMode.View
        )
  • Verified answer
    WarrenBelz Profile Picture
    154,494 Most Valuable Professional on at
    Quickest way (I assume that is a Modern Check box) on the DisplayMode of the Vendor Name control
    If(
       YourCheckBoxName.Checked,
       DisplayMode.Disabled,
       Parent.DisplayMode
    )
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn    Buy me a coffee

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard