# Configuration options

Source: https://developer.avalara.com/products/avalara-1099-and-w9/integration-guides/1099-and-w-9/ugg7960770543050/

Guide: 1099 & W-9

# Configuration options

Review the configuration options that you can pass to embedded Avalara 1099 form requests.

The embedded component supports configuration options that you can pass as the second parameter to these methods.

-   `Avalara1099.requestW9()`
-   `Avalara1099.requestW8BEN()`
-   `Avalara1099.requestW8BENE()`

This example shows how to pass configuration options to a W-9 request.

Avalara1099.requestW9(formRequest, {
  prefill: {
    name: "John Smith",
    email: "john.smith@example.com"
  },
  skipCloseConfirmation: true
})

## Available options

Use these options to control how the embedded form behaves.

-   **prefill**

    An object that pre-populates form fields (for example, name and email).

-   **skipCloseConfirmation**

    Boolean (default: `false`).

    When set to `true`, users can close the form without seeing a confirmation dialog.

    Use this option when your application handles unsaved changes warnings.

## What's next

After you complete the embedded form flow, use these steps to test and integrate the functionality:

-   Create and use another `form_request` with a different `reference_id` to validate new submissions.
-   Create and use another `form_request` with the same `reference_id` to see how previously signed data is handled. The page displays the last signed date and time. Use this information to decide whether the form needs to be completed again or to adjust your application logic.
-   Create and use a `form_request` with a different form type, such as `W-8BEN`, to test additional workflows.
-   Implement the **Create form request** API action in your application server so you can dynamically generate `form_request` objects instead of manually copying and pasting JSON into your HTML file.