← Back to Autofill domain

Autofill.trigger

Trigger autofill on a form identified by the fieldId. If the field and related form cannot be autofilled, returns an error.

Domain: Autofill experimental

Parameters

NameTypeDescription
fieldIdDOM.BackendNodeIdIdentifies a field that serves as an anchor for autofill.
frameId (optional)Page.FrameIdIdentifies the frame that field belongs to.
card (optional)CreditCardCredit card information to fill out the form. Credit card data is not saved. Mutually exclusive with `address`.
address (optional)AddressAddress to fill out the form. Address data is not saved. Mutually exclusive with `card`.

Example Request

{
  "id": 1,
  "method": "Autofill.trigger",
  "params": {
    "fieldId": "fieldId-value"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Autofill.trigger', {"fieldId": "fieldId-value"});
console.log(result);