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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Unanswered

for,iterate, loop thru,through lookup options powerapps portal javascript

(0) ShareShare
ReportReport
Posted on by 441

here we go...

Is it possible in javascript to iterate the options an Account (customer) lookup?

something like:

$("#customer option").each(
what fields would I access to see the text and the value?

Ugh! i am having a brain fade.

I have the same question (0)
  • urklnme Profile Picture
    441 on at
    I changed to another thing.  This gets the selected values and texts of a multi-select control
     
    // Get Array of selected accesses Option Values
        var selectedOptionValues = formContext.getAttribute("access_multi_select").getValue();
       
    //Get Array of selected accesses Option Texts
       var selectedOptionText = formContext.getAttribute("access_multi_select").getText();
        
    // for each access,  
    for (let i = 0; i < selectedOptionValues.length; i++) {    
              // do work here
    }
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 30 Super User 2026 Season 1

#2
NeerajPawar Profile Picture

NeerajPawar 22

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 14

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans