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

Setting a dropdown field based on another dropdown field

Hello,

 

I am trying to set a dropdown value of a choice field (from SharePoint column) based on the value of another column. This is for submitting a helpdesk ticket. Column 1 is "Issue Category" which is a dropdown. If this field = "COVID-19" then set field "Is this creating a work stoppage?" to YES.

 

If(DataCardValue11.Selected.Value,
"COVID-19",
ThisItem.WS.Value
)

 

The above and a few others that i tried are not working. Any suggestions?

Thank you, in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Frequent Visitor

Hey @jjohnson

 

if you have a Choice Field then you might use the "DefaultSelectedItems" Property and put the following code into it:

If(dcvIssueCat.Selected.Value="COVID-19";

{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference";
Id:0;
Value:"YOURVALUE"
};
Parent.Default
)

 

I'm from germany, so you might replace the ; with ,

Hope this helps you 🙂 

View solution in original post

2 REPLIES 2
Frequent Visitor

Hey @jjohnson

 

if you have a Choice Field then you might use the "DefaultSelectedItems" Property and put the following code into it:

If(dcvIssueCat.Selected.Value="COVID-19";

{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference";
Id:0;
Value:"YOURVALUE"
};
Parent.Default
)

 

I'm from germany, so you might replace the ; with ,

Hope this helps you 🙂 

View solution in original post

Thank you, @KimBim! This worked perfectly!

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Check out the Power Apps Community Call for January 2021

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (11,982)