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.
Thanks in advance.
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.
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?
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.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.