Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Accessing the text box data in html web resource

Posted on by 524

Hi,

I embed a html web resource which is in the iframe in a custom entity.

On Save of the custom entity record, I need to get the text box data which is residing into the html web resource, do some validation. How we can do that ?

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Accessing the text box data in html web resource

    Hello,

    There is a way to pass Xrm/executionContext to html webresource - carldesouza.com/.../

    There is getContentWindow handler of the control - you can get the contentwindow in it - I would recommend to store it and use afterwards to get the value from the field.

    There is one more way - usage of postMessage - dreamingincrm.com/.../ to communicate with the html frame.

    It's up to you to choose what you can use.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans