---
name: "Embperl::Form::Control::scriptcode"
section: "3pm"
platform: "linux"
package: "libembperl-perl"
version: "2.5.0-17"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/Embperl::Form::Control::scriptcode"
---

# Embperl::Form::Control::scriptcode(3pm)

A control to add script code to an Embperl Form

## NAME

Embperl::Form::Control::scriptcode - A control to add script code to an Embperl Form

## SYNOPSIS

```
  {
  type   => 'scriptcode',
  code   => 'function onEvent { .... }',
  }
```

## DESCRIPTION

Used to create a script code blockinside an Embperl Form. The code block is added to the end of the form. See Embperl::Form on how to specify parameters.

### PARAMETER

*type*

Needs to be set to 'scriptcode'.

*name*

optional

*scripttype*

Type of script code. Default: text/javascript

*code*

The actual script code.

## Author

G. Richter (richter at embperl dot org), A. Beckert (beckert@ecos.de)

## See Also

[**perl**(1)](/perl/1.md), Embperl, Embperl::Form
