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

Automatically populate choice field based on another choice field - SharePoint List

Hello,

 

I have one list in SharePoint that has, among other columns, two choice columns:

 

Column A

Option 1

Option 2

Option 3

 

Column B

Yes 

No

 

If the user selects Option 1 or Option 2 the Column B can be Yes or No, but if the user selects Option 3 the answer to Column B must always be Yes.

 

I'm using a PowerApps form for this SharePoint list, how can I automatically set the Column B to Yes if the user selects Option 3?

 

Thanks in advance for your time!

1 ACCEPTED SOLUTION

Accepted Solutions
Jeff_Thorpe
Super User
Super User

You can try something like this in the DefaultSelectedItems property of Column B:

 

If(ColumnA.Selected.Value = "Option 3", {Value:"Yes"}, Parent.Default)



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Jeff_Thorpe
Super User
Super User

You can try something like this in the DefaultSelectedItems property of Column B:

 

If(ColumnA.Selected.Value = "Option 3", {Value:"Yes"}, Parent.Default)



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

vinimedina91
Helper I
Helper I

Hello @Jeff_Thorpe , thanks a lot for that!

It worked perfectly!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,035)