locked
Calling a Javascript file from a calculated formula column RRS feed

  • Question

  • I need to call a javascript file from a calculated formula. What I've tried so far throws an error because I honestly don't know what I'm doing! Thanks for any help!

    <script src="http://mydomain.com/test/Scripts/custom.js"></script>
    
    =IF([Usability Status Choices]="Advanced","<DIV><img src='/_layouts/images/ewr210m.gif'></DIV>",IF([Usability Status Choices]="Intermediate","<DIV><img src='/_layouts/images/ewr210m.gif'></DIV>",IF([Usability Status Choices]="Easy","<DIV><img src='/_layouts/images/ewr210m.gif'></DIV>","")))
    
    
    Thursday, December 16, 2010 7:35 PM

All replies

  • could you please post the error which you get and give us more detail where you are trying to call it?

     

    thanks

    -ws


    SharePoint administrator, MCTS,MCITP
    Thursday, December 16, 2010 8:01 PM
  • Hi,

    Really it is very hard to say that what you are doing. Give more detail about your requirement.


    Cheers, Hemendra-MCTS "Yesterday is just a memory,Tomorrow we may never see"
    Friday, December 17, 2010 5:37 AM
    Moderator