Skip to main content Link Search Menu Expand Document (external link)

The Autofiller

The AutoFiller maintains a list of all the autofill maps and provides a method to run autofill in a tab.

There is only one autofiller and it can always be found at jancy.autofiller.

Methods

autofiller.run(tab, which, useSwapFieldMap)

  • tab (Tab | string) a tab object or the UUID of a tab
  • which (number) 0 for profile details, 1 + CC Index for profile details + cc info at CC Index
  • useSwapFieldMap (boolean) if true, run autofill using the swapped field map

Runs autofill in the specified tab.

const tab = ...
jancy.autofiller.run(tab, 0, false)

Since Jancy 1.9.3, you can run autofill from an action.

const tab = window.jancyAPI.getTabInfo()
window.jancyAPI.dispatchAction('autofiller:call', {
  method: 'run',
  args: [ tab.uuid, 0, false ]
})