cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MES
Frequent Visitor

Set value in dropdown

Hi everyone,

 

I want to set a value in a dropdown chart which is part of a edit form.
The value should be fixed and the users should not be able to change it.

 

The form is connected to a sharepoint list. The mentioned dropdown reffers to a lookup column in the shareloint list.

 

Thanks in advance!

2 ACCEPTED SOLUTIONS

Accepted Solutions
ganeshsanap
Memorable Member
Memorable Member

@MES 

 

For your requirements, you can do this:

  • Set Default property of dropdown control to fixed value as per your requirements.
  • Set DisplayMode property of dropdown control to DisplayMode.View

For more information, refer: Drop down control in Power Apps 

 

Additional reference: How to set a pre-populated default value of a Dropdown in EditScreen 


Please click Accept as solution & ‌‌👍 if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it ‌‌👍

View solution in original post

v-qiaqi-msft
Community Support
Community Support

Hi@MES,

Based on the issue that you mentioned, do you want to set the default value of a drop down control?

Could you please share a bit more about the drop down control, is it a Combo Box or a simple Dropdown?

Please share you formula and the error message.

1).If you generate this app directly based on the SP list, I think the drop down control is a Combo Box.

If you want the value to be fixed, you should set the DefaultSelectedItems property.

["Value"] // For a specific value you want.

If you want to lookup a specific value based on other field, please check as below:

LookUp(SPList,ID=1,LookupColumnName)

2). If you have a Dropdown, please set the Default property as below:

"Value"

If the above could not solve your problem, please do post your formula and error message.

Regards,

Qi

Best Regards,
Qi

View solution in original post

4 REPLIES 4
ganeshsanap
Memorable Member
Memorable Member

@MES 

 

For your requirements, you can do this:

  • Set Default property of dropdown control to fixed value as per your requirements.
  • Set DisplayMode property of dropdown control to DisplayMode.View

For more information, refer: Drop down control in Power Apps 

 

Additional reference: How to set a pre-populated default value of a Dropdown in EditScreen 


Please click Accept as solution & ‌‌👍 if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it ‌‌👍

MES
Frequent Visitor

I tried allready the solution that you have linked. But the "=" is shown as invalid argument.

 

Is it possible to use another syntax?

v-qiaqi-msft
Community Support
Community Support

Hi@MES,

Based on the issue that you mentioned, do you want to set the default value of a drop down control?

Could you please share a bit more about the drop down control, is it a Combo Box or a simple Dropdown?

Please share you formula and the error message.

1).If you generate this app directly based on the SP list, I think the drop down control is a Combo Box.

If you want the value to be fixed, you should set the DefaultSelectedItems property.

["Value"] // For a specific value you want.

If you want to lookup a specific value based on other field, please check as below:

LookUp(SPList,ID=1,LookupColumnName)

2). If you have a Dropdown, please set the Default property as below:

"Value"

If the above could not solve your problem, please do post your formula and error message.

Regards,

Qi

Best Regards,
Qi
MES
Frequent Visitor

Thank you!

Yes it is a ComboBox (I thought it is a Dropbox) and I tried it before as you stated in 2). 

With 1) it works fine.

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (4,814)