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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Some hardcoded values ...
Power Apps
Answered

Some hardcoded values dont show up in a dropdown

(0) ShareShare
ReportReport
Posted on by 22

Hi guys,

 

I have an app that I am optimizing for offline use.

 

In the form control, I have this sort of code on all dropdowns:

```

If(
varConnectionStatus = "Online",
Choices([@cctv].connectivity),
[
"IP",
"BNC",
"N/A",
]
)

```

 

Thing is, after I allow time for the new app version to download and go into offline mode, some dropdowns show as they should, while some have missing last few values or even show only first value from the array. In one instance, a dropdown had values duplicated from the previous dropdown.

 

How is this possible, considering values are hardcoded?

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    HI @dasfdsfgdfgdf ,

     

    What you describe shouldn't be possible. Can you please share one or more examples of the entire Items property and a screenshot of what is visible?

  • dasfdsfgdfgdf Profile Picture
    22 on at

    tell me about it. Here is is:

    Screenshot_20230520-083313.pngScreenshot_20230520-083240.png

     

    1 image code:

    If(
    varConnectionStatus = "Online",
    Choices([@cctv].'Type of Cherry Picker'),
    ["STAR10 Internal","STAR10 External","T20 External"]
    )

     

    second image:

    If(varConnectionStatus="Online",Choices([@cctv].connectivity),["IP","BNC","N/A",])

  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @dasfdsfgdfgdf ,

     

    Just to rule out: you did verify that varConnectionStatus is indeed not "Online"?

  • dasfdsfgdfgdf Profile Picture
    22 on at

    @BCBuizeroff course, i have app showing the variable status on the first screen, to help me debug and to notify a user what mode is the app in.

  • Verified answer
    dasfdsfgdfgdf Profile Picture
    22 on at

    SOLVED:

     

    aparently, in this bit of code:

     

    If(
    varConnectionStatus = "Online",
    Choices([@cctv].connectivity),
    [
    "IP",
    "BNC",
    "N/A",
    ]
    )

     

    the extra comma after N/A and before ] has been messign with the dropdowns. After removing it and republishing the app, all dropdowns seem to work fine.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard