Skip to content

set_form_values

Set the values for the specified form.

Arguments

Name Type Description
tab string The ID of the tab where the form values should be set. If not provided, the current page will be used.
selector string An argument for HTMLElement.querySelector(). Specifies the form element to set values for. If not provided, the active form on the page will be used. If active form is not present, the body of the page will be used as form.
values object Form values to set. The key is the name, id, or query selector of the input element and the value is the value to set.

Output

Type: boolean

Whether the form values were set.