locked
Pop up form on Save of a record RRS feed

  • Question

  • Hi all,

    Just wondering how I would code some javascript that will fire a popup window dispalying some value of fields of that particular record.

    How would I integrate the javascrpt with HTML? I havent really done much HTML before in my life.

    Thanks,

    Stanley
    Thursday, May 7, 2009 7:25 AM

Answers

  • Not sure if this is your intention but you should to use a dialog instead of window.open as it won’t stop the page from submitting the data to the server.


    Blog: http://mscrm4ever.blogspot.com/ * Website: http://gicrm.upsite.co.il/
    Thursday, May 7, 2009 9:05 AM

All replies

  • Hi Stanley
    You can give an alert message in the javascript
    eg: alert("Value is "+field.DataValue);
    Thanks, Aarch
    • Proposed as answer by Aarch Thursday, May 7, 2009 12:22 PM
    Thursday, May 7, 2009 7:33 AM
  • Hi,

    For pop ups
    Check this url

    http://blogs.msdn.com/crm/archive/2006/11/17/using-the-attachevent-method-to-show-users-context-sensitive-help.aspx

    Regards,
    Nishant Rana
    http://nishantrana.wordpress.com
    Thursday, May 7, 2009 7:40 AM
  • Hi
        You can do it like this:

    new_wnd = window.open('','','width=500,height=200');
    new_wnd.document.write("Some text");
    new_wnd.focus();

    Put this code in onSave event and modify 'new_wnd.document.write("Some text");' as you need.

    everything is a matter of probability...
    Thursday, May 7, 2009 7:43 AM
  • Not sure if this is your intention but you should to use a dialog instead of window.open as it won’t stop the page from submitting the data to the server.


    Blog: http://mscrm4ever.blogspot.com/ * Website: http://gicrm.upsite.co.il/
    Thursday, May 7, 2009 9:05 AM