locked
form events - how do I get the changed values? RRS feed

  • Question

  • Hello,

    I want to use on save or on change events to check some logic. In a lookup field, if the user change or remove a value, I need to know the previous value.

    Is there a way to do this? We use CRM 2011.

    Thanks,

    Chen


    Thanks, Chen Hirsh
    Monday, May 2, 2011 1:02 PM

Answers

  • Two alternatives from within form script:

    1. Cache the initial values in the Form OnLoad - that is, copy the initial values into local variables and/or objects
    2. Query via REST for the initial values

    --pogo (pat)
    • Marked as answer by Chen Hirsh Monday, May 2, 2011 2:13 PM
    Monday, May 2, 2011 1:37 PM

All replies

  • Two alternatives from within form script:

    1. Cache the initial values in the Form OnLoad - that is, copy the initial values into local variables and/or objects
    2. Query via REST for the initial values

    --pogo (pat)
    • Marked as answer by Chen Hirsh Monday, May 2, 2011 2:13 PM
    Monday, May 2, 2011 1:37 PM
  • Thanks!

    Chen


    Thanks, Chen Hirsh
    Monday, May 2, 2011 2:13 PM