Testing JavaScript in Runtime --> Write the syntax in a description field. RRS feed

  • Question

  • Hi

    I year ago i found a handy javascript code tester, that helped you to test your javascript. But I have lost it.

    A new entity was created, with some default attributes attached to the form.
    At the bottom, there was a description field where your wrote the javascript syntax.

    When pressing save, the javascript code from the description field was executed in the onload event.

    Does anyone have an example on how to do that?
    I thought this was a very esay way to test the scripts.
    Wednesday, November 4, 2009 10:05 PM


  • You can use eval to do this.

    Just get the contents of your text box and eval it on save.


    var scrpt = crmForm.all.new_scripttestbox.DataValue;

    --MSCRM Blogger


    Thursday, November 5, 2009 12:25 PM