Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Get alert message by clicking the button in iframe

Posted on by 260

Hi,

I have a form. When i press a button which is in this form, an iframe apperas. In this ifraem there is a button. When the button which is in this iframe is clicked, i wanto to show to the user an alert() mesaage.

How can i do this by using javascript?.

Can anyone help me please?

iframe_5F00_button.jpg

*This post is locked for comments

  • Verified answer
    Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: Get alert message by clicking the button in iframe

    Hi Muharrem,

    The language confused me. I thought that was a custom IFrame but looking at the code behind it it seems an out of the box one. You can't customize that i'm afraid.

    You would have to create your own case close dialog / functionality (create a custom button in the ribbon that opens a custom iframe and that closes the case incident and displays your alert) if you want to add custom logic.

    Sorry for bringing the bad news.

    Regards,

    Radu

  • altun8tr Profile Picture
    altun8tr 260 on at
    RE: Get alert message by clicking the button in iframe

    Hi, How can i find the ifram and change its code? Can you help me please?

    iframe.jpg

  • Suggested answer
    Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: Get alert message by clicking the button in iframe

    Hi Muharrem,

    You can modify the code behind your iframe and add an onclick event - see www.w3schools.com/.../event_onclick.asp

    To display an alert you can call alert('your text here')

    Hope this helps

    Radu

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans