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 / How to enable and disa...
Power Apps
Unanswered

How to enable and disable a field dynamically

(0) ShareShare
ReportReport
Posted on by 87

Hi all,
I need to create a custom form to insert data in a SharePoint list, instead of using default input of SharePoint.

I need to use PowerApps due to I want that some input elements will be "dynamic".

 

In my case I have a combo box that gets data from SP List.

 

Is it possible to make the time field unusable if you choose items from the combo box?

For example:

option 1 -> choice of time possible

option 2 -> time selection not possible

 

FedericoCoppola_0-1606416894105.png

 

How to identify the user's choice through the combo-box menu?
How can I use this choice to make the time field dynamic?

 

For me it is sufficient that hour field will be greyd out so it is not usable.
I have configured default value for this item to permit right input inside SharePoint List.

 

Thanks so much
Federico

 

 

Categories:
I have the same question (0)
  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    Hi @FedericoCoppola ,

    Set the DisplayMode property of hour combobox to:

    If (RequestTypeComboBox.Selected.Value="Option1",DisplayMode.Edit,DisplayMode.Disabled)

     

    Hope it helps !

     

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @FedericoCoppola 

    Sure thing.  You can set the Visible property of the dropdown control (and any other controls in that datacard) that you want to be gone based on a formula.

     

    So, for example, if Request Type "X" and "Z" allow times, then set the visible property formula to the following:

         yourRequestTypeControl.Selected.Value in "X|Z"

    This will evaluate to true and thus the Visible property will be true and the control visible.

    This assumes a "Value" based Items property on yourRequestTypeConrol.  If not Value, then replace value with the correct column that is in the request type dropdown.

     

    If you have other controls you want to be visible or not based on this, I would only use the formula once in, let's say, your HourDropdown control.  Then for other controls, set their visible property to yourHourDropdownControlName.Visible

     

    I hope this is helpful for you.

     

  • FedericoCoppola Profile Picture
    87 on at

    Thanks!

    In my case, there are multiple options that allow time field. 

     

    How can I set multiple value?

    Can I use multiple if case?

     

    Thanks!

    Federico

     

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard