> For the complete documentation index, see [llms.txt](https://trixtateam.gitbook.io/trixta-js-core/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trixtateam.gitbook.io/trixta-js-core/reference/methods/actions/submittrixtaactionresponse.md).

# submitTrixtaActionResponse

This method will attempt to send a request to the given roleName and actionName

```javascript
import {
  submitTrixtaActionResponse
} from '@trixtateam/trixta-js-core';
```

### Parameters

<table><thead><tr><th>Parameter</th><th>Description</th><th>Type</th></tr></thead><tbody><tr><td>roleName</td><td>Trixta role name</td><td>string</td></tr><tr><td>actionName</td><td>Trixta action name</td><td>string</td></tr><tr><td>actionOptions</td><td>Options for action in Trixta flow</td><td>any</td></tr><tr><td>debugOptions</td><td>Trixta flow debugging options</td><td><pre class="language-typescript"><code class="lang-typescript">{
    slowdown: number;
    inspect: boolean;
    debug_broadcast: {
      role: string;
    }
}
</code></pre></td></tr><tr><td>debugMode</td><td>Enables debugging for action in Trixta flow. False by default</td><td>boolean?</td></tr><tr><td>responseEvent</td><td>Redux event for data to dispatch response to</td><td>string?</td></tr><tr><td>requestEvent</td><td>Redux event for data to dispatch to before submitting request to Trixta</td><td>string?</td></tr><tr><td>timeoutEvent</td><td>Redux event for data to dispatch error response due to timeout</td><td>string?</td></tr><tr><td>errorEvent</td><td>Redux event for data to dispatch error response to</td><td>string?</td></tr><tr><td>loadingStatusRef</td><td><p>Optional value to change the default isInProgress behaviour for when submitting  actions.</p><ul><li>If you plan to use the same action name for the same role, on the same screen, this is when you would make use of this * property</li></ul></td><td>string?</td></tr><tr><td>timeout</td><td>timeout in milliseconds for submitting data to Trixta, default is 15000</td><td>number?</td></tr><tr><td>extraData</td><td>Extra data to pass on and receive in response with the key extraData. This can be used as needed.</td><td>any</td></tr><tr><td>clearResponse</td><td>Determines if the instances for action should be cleared before submitting. False by default</td><td>boolean?</td></tr><tr><td>formData</td><td>Data to submit to Trixta</td><td>any</td></tr></tbody></table>
