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 / Communication between ...
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:

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 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard