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

Sharepoint list dropdown value

Hi, i have sharepoint list name demo and has a field with choice ,draft,approved,rejected, by default its draft but i am developing a sharepoint form which on which i wnat that on click of button in the form the status changed to be approved. what will the procedure to do this (edited)

5 REPLIES 5
HN
Level: Powered On

Sharepoint list dropdown value

Hi, i have sharepoint list name demo and has a field with choice ,draft,approved,rejected, by default its draft but i am developing a sharepoint form which on which i wnat that on click of button in the form the status changed to be approved. what will the procedure to do this.

Highlighted
Community Support Team
Community Support Team

Re: Sharepoint list dropdown value

Which part you would like to update, the value within the control, or the field value in the SharePoint list?

 

If you would like to have the value displayed in the ComBo Box, we could just update the default property of the control, but if you would like the value to be saved into the SharePoint list, it may not update the time when the button is clicked, you will need to refresh the form to save the updated value.

 

For how to set default value for a Choice field, see the following blog for more details:

Defining default values for complex SharePoint types in forms

 

For example, to make your scenario work, please follow the steps below to set the default property:

1. Under the OnSelect property of the Button you quoted, enter the following:

UpdateContext({DefaultValue:{ Value: "Released"}})

2. Under the Default property of the ComboBox control, enter the following:

DefaultValue

3. Under the OnVisible property of the form control, enter the following:

UpdateContext({DefaultValue:{ Value: ""}})

 

Please let me know if you need any further help.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
TopShelf-MSFT
Level 10

Re: Sharepoint list dropdown value

@HN Did this answer your question? 

HN
Level: Powered On

Re: Sharepoint list dropdown value

@TopShelf-MSFT No 

 

TopShelf-MSFT
Level 10

Re: Sharepoint list dropdown value

@HN Which part were you trying to update, the value within the control, or the field value in the SharePoint list? This is will better help us understand and provde a solution. 

Helpful resources

Announcements
thirdimage

Power Automate 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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,408)