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

How to hide an option in drop down with SharePointIntegration?

Hi,

 

I want to hide an option in my drop down with information of SharePointIntegration. For example:

Captura9.JPG

The option "Nuevo" it shouldn't be there, because a new item had already been added to the list, and in edit mode only the other options have to be shown: "En Proceso", "Completado", "Cerrado".

 

How to hide the element "Nuevo"?

 

Thank You!

1 ACCEPTED SOLUTION

Accepted Solutions
Murderbot
Level: Powered On

Re: How to hide an option in drop down with SharePointIntegration?

This works!  Just need to make sure to add ['Value'] to the Data DisplayFields and SearchFields.  It got wiped for me when I switched the Combobox from the SP List values to the Collection values.

image.png

 

Also, your code needs an enparen at the end ;P

ClearCollect(colDropDownOptions, Filter(Choices('DataSource'.ColumnOptions), Not(Value = "Nuevo")))

 

Thanks!

4 REPLIES 4
Anonymous
Not applicable

Re: How to hide an option in drop down with SharePointIntegration?

Hi

 

I don't think this can be done for the moment. Controls don't allow this granularity. The only way i see is to have duplicated tables with different items possibilities so that you refer to the one you want

 

Regards

Community Support Team
Community Support Team

Re: How to hide an option in drop down with SharePointIntegration?

Hi @Isatol,

 

Sorry but I think this cannot be achieved so far. If you really need the function, please post this idea in the PowerApps Ideas forum, so it might be considered for future releases.

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Regards,

Mona Li

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Re: How to hide an option in drop down with SharePointIntegration?

Have you tried something like filtering the options and storing them in a collection and using that collection as the item for the drop down/combo box?

 

(I'm assuming this is a combo box using, maybe, the choices function, since I had this problem a week or so ago)

 

So something like, in the OnVisible property maybe of the screen the form is on:

ClearCollect(colDropDownOptions, Filter(Choices('DataSource'.ColumnOptions), Not(Value = "Nuevo"))

Then, in the Item property of the drop down, put colDropDownOptions

 

I haven't tested this so I don't know if it works/you may have to tweak it a bit.

 

Murderbot
Level: Powered On

Re: How to hide an option in drop down with SharePointIntegration?

This works!  Just need to make sure to add ['Value'] to the Data DisplayFields and SearchFields.  It got wiped for me when I switched the Combobox from the SP List values to the Collection values.

image.png

 

Also, your code needs an enparen at the end ;P

ClearCollect(colDropDownOptions, Filter(Choices('DataSource'.ColumnOptions), Not(Value = "Nuevo")))

 

Thanks!

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 445 members 4,698 guests
Recent signins:
Please welcome our newest community members: