# Script in Create Scripted Field form

**URL:** <https://discuss.elastic.co/t/script-in-create-scripted-field-form/59974>\
**Category:** Kibana\
**Created:** [September 7, 2016, 11:15am UTC](https://discuss.elastic.co/t/script-in-create-scripted-field-form/59974 "2016-09-07T11:15:30Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mrvincnezo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mrvincnezo/32/10829_2.png) [@mrvincnezo](https://discuss.elastic.co/u/mrvincnezo)\
**Post date:** [September 8, 2016, 8:36am UTC](https://discuss.elastic.co/t/script-in-create-scripted-field-form/59974/4 "2016-09-08T08:36:25Z")

</div>

Thanks a lot @cjcenizal!

In was already familiar with that [thread](https://discuss.elastic.co/t/kibana-groovy-scripted-field-for-aggregation-visualize-unsupported-script-value/54126). After going over it again I found what I was looking for.

The script needs to go to the "Create Scripted Field" form, to the "Script" input

 ![](https://us1.discourse-cdn.com/elastic/original/2X/6/6b35297b786810940c047087bcbf73cc5dba8f9d.png)

Then, in the Visualization, in the Advanced-\>Json Input one needs to specify **{"script": {"lang":"groovy"}}**.  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/7/733a55c9b1e6d34b73fa5d026142ee52bf6aae8e.png)

---

_[View the full topic](https://discuss.elastic.co/t/script-in-create-scripted-field-form/59974)._
