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

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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,518)