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.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,274)