cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jjohnson
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
KimBim
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
KimBim
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (54,129)