TreeINFO-For-M365 documentation
    Preparing search index...
    OnChangeDelegate: (value: any, context: { oldValue: any }) => void

    Function delegate for onChange event.

    Type declaration

      • (value: any, context: { oldValue: any }): void
      • Parameters

        • value: any

          the new value of the field

        • context: { oldValue: any }
          • oldValue: any

            the old value of the field before the change

        Returns void

    const { form } tisa;
    const { myField } tisa.form;

    // handling field value changes
    myField.onChange((value, { oldValue })=>{
    console.log(`${oldValue} -> ${value}`);
    });