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 Check in F...
Power Apps
Answered

Conditional Check in Forms - Canvas Apps

(1) ShareShare
ReportReport
Posted on by 24

Dear All,

I am creating a form with the help of a Canvas App.

The field State contains different states of a country.

I want the field City to get activated only when the user selects a specific State.

Kindly refer to my screenshot.

How can I implement the same?

Thanks in advance.

Soham

 

question.JPG
Categories:
  • BrunoTw Profile Picture
    15 on at

    Hi Roy,

     

    You can apply a condition to your Visible/DisplayMode property of your City control based on the selected item.

     

    That would be something like that

     

    1. Select City control
    2. Look for Visible property (it will be probably set to true)
    3. Replace whatever value is there if the condition below

     

    If(cbState.Selected.SomePropertyOfYourObject = "NY", true, else)

     

    The same logic applies if you want Disable/Enable the field, just look for the property DisplayMode instead and change true or false to the DisplayMode, which is an Enumerator (Disabled, Edit, View).

     

    Please mark my answer verified if this is helpful!

     

     

  • Verified answer
    AJ_Z Profile Picture
    3,711 Super User 2024 Season 1 on at

    Hi
    I dont know the names of the comboboxes so i have made some up:
    I called the state one StateInp

    I called the city one CityInp

     

    change these to the correct names of your comboboxes.

    please go to the City Box and go to displaymode property. in here add:

    If(IsBlank(StateInp.Selected.Value),DisplayMode.Disabled,DisplayMode.Edit)

    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.



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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard