cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ammarfassy
Helper III
Helper III

Set drop down default value by ID

Dears,

 

I do have a drop down where the datasource is a Collection. I just wanted to set its default value from a variable (by ID).

 

how can i achive this?

 

thanks in advance,

Ammar

1 ACCEPTED SOLUTION

Accepted Solutions

using a varaible i can be able to sort out the issue. 

 

the issue is fixed. 

View solution in original post

7 REPLIES 7
DavesTechTips
Super User
Super User

Hi @ammarfassy,

 

Can you send us more information?

a) where is the collection being populated from?

b) Can you send us a print screen of the columns of the collection (View\Collections)?

c) Where are you getting the ID from that should be defaulted to?

 

Kind regards

 

twitter:@dawidvh

youtube:https://www.youtube.com/channel/UCIMe_ErQZP5chbI9UyW0xLw

thanks a lot david for your reply.

 

I am populating this collection once the user logs into the app (onvisible event login form).

 

Upon that i have a list of items to be displaed on the Dashboard page. from there when the user selects an item, i am passing the leave Type (ID) to the Edit screen where the drop down reside. (have attached the screen shot)

 

Once the page opens i have to select the drop down value based on the passed parameter.

 

thanks,

Ammar

 

 

Anyway that you can attach the app. Otherwise you can send it to me at dawid.vanheerden@ukuvuma.co.za

 

Otherwise you can send me the print screen of the collection values, but this will take longer.

i will try to send you the package very soon.

 

the collection which i m deriving the collection is as below:

2.png111.png

using a varaible i can be able to sort out the issue. 

 

the issue is fixed. 

Hi

 

Can you share the fix please ?

 

Thanks

 

Nigel

 

Hii @NigelP,

 

I already populated the following drop down using a collection (Sharepoint List) as below.

ID  Value

0   None

1 Personal

2 Official

 

For a drop down you will find the property named "Default". In that you can set the Default value for the drop down as below:

If(pLeaveMainType="0", "None", If(pLeaveMainType="1","Official","Personal"))

 

fpru,.png

 

Thanks,

Ammar

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,124)