Pathfinder 1e for Foundry VTT
    Preparing search index...

    Function saveEditState

    • Internal Experimental

      Save edit state

      Parameters

      • sheet: FormApplication<any, Options>
      • options: object = {}

      Returns void

      • Must be combined with ()
      • Static EDIT_TRACKING array must be defined to declare what fields are being tracked for editing.

      In sheet body define the following

      // Init data
      _activeEdits = {};

      // Define fields to track
      static EDIT_TRACKING = ["system.description.value", "system.description.unidentified"];

      // Override
      async _render(force, options) {
      pf1.applications.utils.saveEditState(this, options);

      return super._render(force, options);
      }