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 :
Power Apps - Building Power Apps
Unanswered

Communication between popup and client script

(2) ShareShare
ReportReport
Posted on by 3
I'm not sure if its the best category, I couldn't find appropriate one.
 
Hello,
 
I created a client-script to open a popup -> allow user to select value -> populate all filtered rows with this value. The issue is that I can't get value from popup back to the script.
In the script I have set up the communication via postMessage and addEventListener and it works fine on the script -> pop-up way but pop-up -> script communication doesn't work.
*ss from client script that should catch the message. Pop-up is opened after the listener is added globally
 
*part from pop-up that should send the value back. The log is returned in the console and pop-up closes.
 
I have checked the script multiple times form JS point it should look without problems so I think there is something about how it works with in Power Platform that I don't understand, my idea is that after opening the pop-up the script is 'running' and ends before message gets posted so the part after that dont' run.
 
 
 
 
 
Categories:
I have the same question (0)

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…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 766 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 419 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 235

Last 30 days Overall leaderboard