cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Community Support
Community Support

Re: Powerapps add new value to choice column

Hi @amko77 ,

Based on the screenshot that you provided, I think you have something wrong with the formula you typed. You have missed some ')' symbol within your fomrula.

 

Please modify your formula as below:

ClearCollect(
             AvailableOptions;
             Choices(TestnaLista.Poslovnica)
);            /* <-- You have missed ')' symbol here . The ';' maybe ';;' on your side */
ForAll(
TestnaLista.Poslovnica;
If(
Poslovnica.Value <> Blank();
Collect(AvailableOptions; Poslovnica.Value)
)
) /* <-- You have missed ')' symbol here */

Please take a try with above formula, then check if your issue is solved.

 

Then set the Items property of the ComboBox within the ChoiceList Data card within your Edit form to following:

Distinct(AvailableOptions, Value)

Best regards,

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

Helper I
Helper I

Re: Powerapps add new value to choice column

Thank you very much.

This formula work for me:

ClearCollect(
             AvailableOptions;
             Choices(TestnaLista.Poslovnica)
);;            
ForAll(
       TestnaLista.Poslovnica;
       If(
          Poslovnica.Value <> Blank();
          Collect(AvailableOptions; Poslovnica.Value)
       )
)

Best Regards,

Amir

Highlighted
Resolver I
Resolver I

Re: Powerapps add new value to choice column

I can't create the new collection either using this code or collect("nameofthenewcollection"...) it tells me that the collection must already exist, how do i create one to use temporary?

Highlighted
Resolver I
Resolver I

Re: Powerapps add new value to choice column

Where did you insert this? in the Onvisible of the screen? I can't create the new collection AvaibleOptions, where and how did you create it?

 

Could solve that already, but it isn't working for me. The new value does not add to the choices. Could you please explain how to do it? I already set the onvisible property of the screen and the Items value of the convobox.

Highlighted
Regular Visitor

Re: Powerapps add new value to choice column

This is a great solution for choice-list, but this doesnt work for lookup-list.

Could find the same solution for lookup?

thank you in advance,

pedro

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 (6,816)