fillAllFields function exported

Last updated: 2026-03-04T23:21:38.398Z

Metrics

LOC: 10 Complexity: 1 Params: 1

Signature

fillAllFields(options?: { fillEmptyOnly?: boolean; }): : Promise<GenerationResult[]>

Summary

Fills every detected form field on the current page. Resolves values through the priority chain (rules → saved forms → AI → generator).

Tags

#@param options.fillEmptyOnly When set, overrides the stored setting for this call only#@returns Array of generation results for each filled field

Source Code

export async function fillAllFields(options?: {
  fillEmptyOnly?: boolean;
}): Promise<GenerationResult[]> {
  setFillingInProgress(true);
  try {
    return await doFillAllFields(options);
  } finally {
    setFillingInProgress(false);
  }
}

Dependencies (Outgoing)

graph LR fillAllFields["fillAllFields"] setFillingInProgress["setFillingInProgress"] doFillAllFields["doFillAllFields"] fillAllFields -->|calls| setFillingInProgress fillAllFields -->|calls| doFillAllFields style fillAllFields fill:#dbeafe,stroke:#2563eb,stroke-width:2px click fillAllFields "12dbe3fb8e692059.html" click setFillingInProgress "5404cb0266e02c7f.html" click doFillAllFields "23fe5c1a0125e335.html"
TargetType
setFillingInProgress calls
doFillAllFields calls

Impact (Incoming)

graph LR fillAllFields["fillAllFields"] FillableElement["FillableElement"] fillContextualAI["fillContextualAI"] makeInput["makeInput"] FillableElement -->|uses| fillAllFields fillContextualAI -->|calls| fillAllFields makeInput -->|uses| fillAllFields style fillAllFields fill:#dbeafe,stroke:#2563eb,stroke-width:2px click fillAllFields "12dbe3fb8e692059.html" click FillableElement "2ecf5aaac3f668a8.html" click fillContextualAI "854e1a4562eb49e4.html" click makeInput "3b463c3c3297bb7c.html"
SourceType
FillableElement uses
fillContextualAI calls
makeInput uses