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

Sharepoint dropdown choices

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Sharepoint dropdown choices

Hi @HN,

 

Do you want to change the value within the Status column (Combo box control) when you click the Check icon?

 

I have made a test on my side, please take a try with the following workaround:9.JPG

 

10.JPG

 

11.JPG

 

 

Set the OnNew property of the SharePointIntegration control to following formula:

NewForm(SharePointForm1);
Set(IsClicked,false) /* <--- Add this code */

Set the OnEdit property of the SharePointIntegration control to following formula:

EditForm(SharePointForm1);
Set(IsClicked,false) /* <--- Add this code */

Set the OnSelect property of the Check icon to following formula:

Set(IsClicked,true)

Set the DefaultSelectedItems property of the Combo box control within the Status Data card to following formula:

If(
    IsClicked=true,
    {
      '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
       Value:"Approved"
    },
    Parent.Default
)

The GIF screenshot as below:Test1.gif

 

 

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support Team
Community Support Team

Re: Sharepoint dropdown choices

Hi @HN,

 

Do you want to change the value within the Status column (Combo box control) when you click the Check icon?

 

I have made a test on my side, please take a try with the following workaround:9.JPG

 

10.JPG

 

11.JPG

 

 

Set the OnNew property of the SharePointIntegration control to following formula:

NewForm(SharePointForm1);
Set(IsClicked,false) /* <--- Add this code */

Set the OnEdit property of the SharePointIntegration control to following formula:

EditForm(SharePointForm1);
Set(IsClicked,false) /* <--- Add this code */

Set the OnSelect property of the Check icon to following formula:

Set(IsClicked,true)

Set the DefaultSelectedItems property of the Combo box control within the Status Data card to following formula:

If(
    IsClicked=true,
    {
      '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
       Value:"Approved"
    },
    Parent.Default
)

The GIF screenshot as below:Test1.gif

 

 

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

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
Users Online
Currently online: 193 members 5,033 guests
Please welcome our newest community members: