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.
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.
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
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,715)