New to Kendo UI for jQueryStart a free 30-day trial

Getting Started with the SmartPasteButton

Updated on Feb 11, 2026

This guide demonstrates how to get up and running with the Kendo UI for jQuery SmartPasteButton.

After the completion of this guide, you will achieve the following end result:

Loading ...

1. Create a Form

First, create an HTML form with the input fields you want to populate automatically:

html
<form id="customerForm">
    <div>
        <label for="firstName">First Name:</label>
        <input id="firstName" name="firstName" type="text" />
    </div>
    <div>
        <label for="lastName">Last Name:</label>
        <input id="lastName" name="lastName" type="text" />
    </div>
    <div>
        <label for="email">Email:</label>
        <input id="email" name="email" type="email" />
    </div>
    <div>
        <label for="phone">Phone:</label>
        <input id="phone" name="phone" type="tel" />
    </div>
    <button id="smartPasteButton" type="button">Smart Paste</button>
</form>

2. Initialize the SmartPasteButton

In this step, you will initialize the SmartPasteButton from the <button> element.

html
<script>
$("#smartPasteButton").kendoSmartPasteButton({
    service: "https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste"
});
</script>

3. Configure the AI Service

The SmartPasteButton requires an AI service endpoint that processes clipboard content and returns structured data. For this example, we use the Telerik demo service at https://demos.telerik.com/service/v2/ai/smartpaste/smartpaste.

json
{
    "clipboardContent": "John Smith, Software Engineer at Acme Corp, john.smith@acme.com, (555) 123-4567",
    "formFields": [
        { "field": "firstName", "type": "string", "description": "First name" },
        { "field": "lastName", "type": "string", "description": "Last name" },
        { "field": "email", "type": "string", "description": "Email address" },
        { "field": "phone", "type": "string", "description": "Phone number" }
    ]
}

And return a response with field values:

json
{
    "firstName": "John",
    "lastName": "Smith",
    "email": "john.smith@acme.com",
    "phone": "(555) 123-4567"
}

Next Steps

See Also