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
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

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,221)