cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ramsabi
Helper II
Helper II

Value and display mode of one field based on the value of another

I have two fields one a drop down and another text. The value and display mode (edit and view) of the text field should be populated based on the value of the drop down. The form is in Power Apps and updates a SharePoint list. I have attached an image for better understanding.

 

Please help

 

Thanks in advance.

 

Dependent values.jpg

 

3 REPLIES 3
RandyHayes
Super User
Super User

@ramsabi 

Consider the following:

1) Set the Default property of your TextInput control for Revision # to the following:

Switch(dropdownRequestType.Selected.Value,
    "New", "Initial",
    "Obsolete", "N/A",
    "Revision", ""
)

2) Set the DisplayMode of the TextInput to the following:

If(dropdownRequestType.Selected.Value = "Revision", Edit, View)

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Thank you for your response. That is not working.
I should have mentioned that the Values for the "Request Type" dropdown are coming from a list in SharePoint and I am using SharePoint's "Title" column for "Request Type". Maybe it would be easier if I added a column for "Revision #" in the list?

RandyHayes
Super User
Super User

@ramsabi 

Well, you're most likely going to need a column to store the revision #, but that is aside from your original question.

However, for your Request Type dropdown, what is your Items property of that control?  You will need to utilize whatever record column that property has in its table.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,686)