CRM 2013 - Javascript - Can I stop my Javascript code running if a certain condition is met? RRS feed

  • Question

  • Hi, I've created a piece of JavaScript that runs when a account name is inputted by the customer, from the account name a account code is generated. Once the account code has been saved I do not want the account code to be edited again, but the account name can be. My problem is even when account code is set to read only my JavaScript will kick in and change the account code

    I was wondering if there was a way of using the OnLoad event the programme could check if a Account code is present, if it is then my piece of javascript will be disabled?

    Thanks, Shaun


    Monday, June 9, 2014 3:31 PM