cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
EMohaisen
Level: Powered On

Set SharePoint (Choice Fields) using button

Hello,

 

i am looking for the formula that will set a sharepoint (choice field) to a value from it's list.

 

i.e. i have a choice field called "Phone Needed?" and it's items (Yes, No)

 

so i need to make a button which when i click on it it will set the value of "Phone Needed" to Yes

 

i have tried this: DataCardValue14.Selected.Value="Yes" where DataCardValue14 is for the Phone Needed field but it's not working.

 

any one have an idea please?

 

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: Set SharePoint (Choice Fields) using button

Hi @EMohaisen 🙂 ,

 

Put it :

Dropdown.Default = 

"Yes"

Button.OnSelect = 

Reset(Dropdown)

Best regards 🙂 ,

 

Louis

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Re: Set SharePoint (Choice Fields) using button

Hi @EMohaisen 🙂 ,

 

Put it :

Dropdown.Default = 

"Yes"

Button.OnSelect = 

Reset(Dropdown)

Best regards 🙂 ,

 

Louis

View solution in original post

Community Support Team
Community Support Team

Re: Set SharePoint (Choice Fields) using button

Hi @EMohaisen ,

Do you want to fill in data to the choice column by clicking a button?

Could you tell me what control does DataCardValue14 represent?

I’ve made a similar test, you could refer this:(assume that DataCardValue14 is a Combo Box)

Set the button1’s OnSelect: ClearCollect(test,{Value:"Yes"})

Set the button2’s OnSelect: ClearCollect(test,{Value:"No"})

Set the Combo Box’s DefaultSelectedItems: First(test)

 

Then, click button1 or button2, the Combo Box will  be autofilled value.

 

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
thirdimage

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,656)