cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Regular 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
Highlighted
Regular 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

Highlighted

Thank you, @KimBim! This worked perfectly!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

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

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,842)