Send previous control to client
reference brazil Updated Sep 10, 2026 1 min read send-previous-control-client.md
Provide the ability to send previous control to client.
There are two ways to send previous control back from the server when a client requests:
- In inbound transformation, set
validation_messagein result. Previous control will be sent again with message provided invalidation_message. - In inbound transformer, set
send_prev_controlin result to true, previous control will be sent again. Use this method for Multi-Step controls.
Example script:
JavaScript
(function execute (inputs, outputs) { var result = {}; var request_context = inputs.request_context; var typed_value = request_context ['typed_value']; if (typed_value.index0f("#") > -1) result["validation_message"] = "Invalid character, please don't enter special character '#'"; result["value"] = typed_value; result["search_text"] = ""; outputs.result - result;})(inputs, outputs);Parent Topic:Supported Virtual Agent and Agent Chat features for custom chat integrations
41 lines · 1.7 KB
---
title: Send previous control to client
description: Provide the ability to send previous control to client.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/conversational-interfaces/virtual-agent/send-previous-control-client.html
release: brazil
product: Virtual Agent
classification: virtual-agent
topic_type: reference
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Supported features for custom chat integrations, Create custom chat integrations, Configure, Virtual Agent, Conversational Interfaces]
---
# Send previous control to client
Provide the ability to send previous control to client.
There are two ways to send previous control back from the server when a client requests:
- In inbound transformation, set `validation_message` in result. Previous control will be sent again with message provided in `validation_message`.
- In inbound transformer, set `send_prev_control` in result to true, previous control will be sent again. Use this method for Multi-Step controls.
Example script:
```
(function execute (inputs, outputs) {
var result = {};
var request_context = inputs.request_context;
var typed_value = request_context ['typed_value'];
if (typed_value.index0f("#") > -1)
result["validation_message"] = "Invalid character, please don't enter special character '#'";
result["value"] = typed_value;
result["search_text"] = "";
outputs.result - result;
})(inputs, outputs);
```
**Parent Topic:**[Supported Virtual Agent and Agent Chat features for custom chat integrations](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/conversational-interfaces/virtual-agent/va-features-custom-chat-integrations.md)
| title | Send previous control to client |
| description | Provide the ability to send previous control to client. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/conversational-interfaces/virtual-agent/send-previous-control-client.html |
| release | brazil |
| product | Virtual Agent |
| classification | virtual-agent |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Supported features for custom chat integrationsCreate custom chat integrationsConfigureVirtual AgentConversational Interfaces |