redirect.toSearchResult(options)

Note:

The content in this help topic pertains to SuiteScript 2.0.

Method Description

Redirects a user to a search results page. For example, the results from an on demand search created with the N/search Module, or a loaded search that you modified but did not save.

Returns

void

Supported Script Types

afterSubmit user event scripts

For more information, see SuiteScript 2.x User Event Script Type.

Governance

None

Module

N/redirect Module

Since

2015.2

Parameters
Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

options.Search

search.Search

required

The search result to be redirected to.

Related Topics

N/redirect Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices