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 tabwhich
(number
) 0 for profile details, 1 + CC Index for profile details + cc info at CC IndexuseSwapFieldMap
(boolean
) iftrue
, 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 ] })