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

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
Highlighted
Helper I
Helper I

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
Community Support

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.
Highlighted
Anonymous
Not applicable

Re: Sharepoint list dropdown value

@HN Did this answer your question? 

Highlighted
Helper I
Helper I

Re: Sharepoint list dropdown value

@Anonymous No 

 

Highlighted
Anonymous
Not applicable

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
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,771)