web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / ComboBox retrieveing v...
Power Apps
Unanswered

ComboBox retrieveing values from Sharepoint list Text Field

(0) ShareShare
ReportReport
Posted on by 3,295

Hello community. 

I hope someone could help me with this. I have been in circles for days.

 

I have a text column in my share point list to save the value selected in my Form2. The submission of the form is basically SubmitForm(Form2).

 

I have a collection with all the dropdowns required in the app for the admin to add new values to any of the combobox.

//Generate Collection for all the dropdowns
ClearCollect(
    Coll_Choices,
    Filter(Tbl_Choices, IsActive = "Yes")
);

 

 

In Each dropdown I have the items property as follow:

Table(
    {Value: "-"},
    SortByColumns(
        Filter(
            Distinct(
                Filter(Coll_Choices, Category = "JobStatus"),
                Description
            ),
            !IsBlank(Value)
        ),
        "Value"
    )
)
 
In here I am basically adding "-" to all dropdows. And filtering the dropdown to the values required in that field.
 
I have the form divided in TABS and making each section visible depending of this condition:
OnChange TabList = UpdateContext({currentTab: TabList1.Selected.TabValue});
 
Visible property per DataCard = currentTab = 2
 
For each ComboBox I have tried 
DefaultSelectedItems = [Parent.Default] Or
DefaultSelectedItem = 
LookUp(Coll_Choices, Title = "JobStatus" && Description = Parent.Default)
 
The problem is: If I add values to my combobox or other fields text, date, etc. And save it. It saves OK in the datasource without no issue.
If I return to the form and change a value and save the form the values form my combobox dissapeard and it saves a black value in my database.
 
I guess it is not holding the value in the combobox. IDK.
 
Please note. When I am selecting a record from my gallery to navigate to my form I am setting var_CurrentRecord. And when I Submit the form I am navigating back to my gallery.
 
Thanks in advance for any help.
 
BR
 
Categories:
  • CU18061035-1 Profile Picture
    Microsoft Employee on at

    hey @sajarac 

     

    can you try this:

    LookUp(Coll_Choices, Title = "JobStatus" && Description = var_CurrentRecord.JobStatus)
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • Sajarac Profile Picture
    3,295 on at

    Hey, thank you very much for your prompt response. I just did, but unfortunatelly same behavior. If I change a field the combobox gets clear and a blank value is saved 

  • Sajarac Profile Picture
    3,295 on at

    UPDATE!

    I have replaced the modern combobox control for the Clasic and it retains the value. So it looks like the bad guy here is the Modern Control.

  • Sajarac Profile Picture
    3,295 on at

    2nd Update!

    After several trial/errors. I guess is not related with the modern or New controls. Is because the form questions are not visible at the beginning. 

     

    So I have A tab list  and the OnChange property is this:

    UpdateContext({currentTab: TabList1.Selected.TabValue});
    For the visible property of each datacard I have this: 
    currentTab = 1
     
    So, I guess the form is not loading the controls properly because it is not visible at the moment. I did several test loading the form navigating bertween all the tabs. Changing values and no issue at all. But, If I navigatye to the form Not selecting any other tab. Just the first one doing a change that value gets chenged and the rest of the combobox gets reset.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard