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

Custom field dropdown keeps resetting to default value on edit form

Hello everyone,

 

I used this post to customize some list forms: https://powerapps.microsoft.com/en-us/blog/separate-custom-forms/

I also used a custom dropdown that sets the value to a text field, however, whenever I edit a list item, the dropdown resets to the default value. Does anyone have experience with this type of thing? 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Custom field dropdown keeps resetting to default value on edit form

Hi @JMAFO ,

Could you please share a bit more about the issue within your custom form?

Could you please show more details about the custom Dropdown that you mentioned?

 

I assume that you added a column in your SP list to store the custom Dropdown selected value, is it true? I suppose that you want the custom Dropdown to display the stored value within your SP list rather than reset to default value, is it true?

 

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

Set the Default property of the custom Dropdown to following:

If(
   SharePointForm1.Mode = FormMode.Edit,
SharePointIntegration.Selected.ColumnName )

Note: The ColumnName represents the Column in your SP list, which used to store the custom Dropdown selected value.

 

If the custom Dropdown is a ComboBox control, please take a try with the following workaround:

Set the DefaultSelectedItems property of the ComboBox to following:

If(
   SharePointForm1.Mode = FormMode.Edit,
   LookUp('The formula/data source you typed within the Items property of the ComboBox control', DisplayColumn = SharePointIntegration.Selected.ColumnName)
)

Note: The DisplayColumn represents the column you displayed within your custom ComboBox control.

 

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

1 REPLY 1
Community Support Team
Community Support Team

Re: Custom field dropdown keeps resetting to default value on edit form

Hi @JMAFO ,

Could you please share a bit more about the issue within your custom form?

Could you please show more details about the custom Dropdown that you mentioned?

 

I assume that you added a column in your SP list to store the custom Dropdown selected value, is it true? I suppose that you want the custom Dropdown to display the stored value within your SP list rather than reset to default value, is it true?

 

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

Set the Default property of the custom Dropdown to following:

If(
   SharePointForm1.Mode = FormMode.Edit,
SharePointIntegration.Selected.ColumnName )

Note: The ColumnName represents the Column in your SP list, which used to store the custom Dropdown selected value.

 

If the custom Dropdown is a ComboBox control, please take a try with the following workaround:

Set the DefaultSelectedItems property of the ComboBox to following:

If(
   SharePointForm1.Mode = FormMode.Edit,
   LookUp('The formula/data source you typed within the Items property of the ComboBox control', DisplayColumn = SharePointIntegration.Selected.ColumnName)
)

Note: The DisplayColumn represents the column you displayed within your custom ComboBox control.

 

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

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 (Last 30 Days)
Users online (5,003)