cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Helper I
Helper I

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.

Community Support
Community Support

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

@HN Did this answer your question? 

@Anonymous No 

 

Anonymous
Not applicable

@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

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (9,040)