web
You’re offline. This is a read only version of the page.
close
Skip to main content
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 439

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
    439 on at
    for,iterate, loop thru,through lookup options powerapps portal javascript
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 101 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 59

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 26 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans