cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Aditya1728
Helper II
Helper II

Default value for dropdwon selected but on save, the value is not visible in the list record

I have a column in my SharePoint list called as "Countries".I used "Editform" and created a form "XYZ" directly from my sharepoint list and hence got my countries dropdwon automatically created. But to avoid various problems likes zoomin issue in iOS, to add more visual appeal in the screen etc., I created an independent drop- down (say ABC) using the dropdown control and connected it with the SharePoint list for the column values of Countries.

 

Now, I set visible as false for the form XYZ itself but made sure that the datacard value of the Countries column in XYZ has a default value as "ABC.Selectedtext".

When I select a value in ABC drop-down, I see the same value in the Countries field of XYZ.So that means the connection works between both drop-downs.

 

Problem is when I submit the form , it is submitted successfully.But when I open the list to check if the record is saved or not byt Countries column is empty.

 

I am not sure why it is not saving when it is showing it on the screen of my app.

 

Any suggestions?

5 REPLIES 5
PowerAddict
Super User II
Super User II

Is country a lookup field? Also what is the Update property of the dropdowns?

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit Bhatia
https://thepoweraddict.com
poweractivate
Super User II
Super User II

@Aditya1728 

 


@Aditya1728 wrote:

Now, I set visible as false for the form XYZ itself but made sure that the datacard value of the Countries column in XYZ has a default value as "ABC.Selectedtext".

 

 


 

SelectedText is "deprecated" property. That means it may have issues because it is being phased out.

 

See https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-drop-down

 

...

 

Reset – Whether a control reverts to its default value.

SelectedText (Deprecated) – A string value that represents the selected item.

SelectionColor – The text color of a selected item or items in a list or the color of the selection tool in a pen control.

 

...

 

Try using Text or another non-deprecated property and see if it helps.

 

 

Hi Hardit,

 

Yes it is a look up.

Thanks for the information.

Though I am using it for other text fields as well and it works.

Can you try the suggestion posted by me here? - https://powerusers.microsoft.com/t5/Building-Power-Apps/Patch-function-doesn-t-work-with-Person-Grou...

Let me know if it works.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit Bhatia
https://thepoweraddict.com

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (65,471)