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
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,004)