web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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
    153,717 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 402

#2
WarrenBelz Profile Picture

WarrenBelz 380 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 293 Super User 2025 Season 2

Last 30 days Overall leaderboard