---
title: "code input · RUAL Documentation"
description: "Generates multiple inputs based on the given code length. It can further be specified to only allow numbers and to execute the on enter function after a…"
canonical: https://docs.rual.nl/block-types/Component%20UI/component_input_code
language: en
---

[Cluster](https://docs.rual.nl/cluster)

[Blocks](https://docs.rual.nl/block-types)

[Interfaces](https://docs.rual.nl/interfaces)

[Blueprints](https://docs.rual.nl/blueprints)

[Tutorials](https://docs.rual.nl/tutorials)

[Home automation](https://docs.rual.nl/home-automation)

[Examples](https://docs.rual.nl/examples)

[Reference](https://docs.rual.nl/reference)

[Architecture](https://docs.rual.nl/architecture)

[Troubleshooting](https://docs.rual.nl/troubleshooting)

Other

# code input

This block is part of the [`Component UI`](https://docs.rual.nl/block-types/Component%20UI) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

Generates multiple inputs based on the given code length. It can further be specified to only allow numbers and to execute the on enter function after all inputs are filled

- Field required `fielddefinitions` Field to save the value in

- Length `number` Defines how many inputs to show

Default `6`

- Numbers only `condition` If set to true, the inputs will only allow numbers

Default `false`

- Alpha Numeric `condition` If set to true, the inputs will only allow A-Z and 0-9

Default `false`

- Is required `condition` Checks if the code input is filled.

Default `false`

- On enter `inpinfunction` Function will be executed as soon as the enter button is hit

- Call on enter `condition` If set to true the inputs will call the on enter function as soon as every input is filled

Default `false`

- Clear on enter `condition` If set to true the inputs will clear the filled fields when enter is pressed or called

Default `false`

- uicomponent `uicomponent`

A typical wiring for [code input](https://docs.rual.nl/block-types/Component%2520UI/component_input_code): [combine](https://docs.rual.nl/block-types/fields/fielddefinitions_multiple) feeds the `fields` pin; the `uicomponent` out pin feeds [build PDF](https://docs.rual.nl/block-types/files/file_generate_pdf).

[![Studio canvas example for the code input block: typical wiring for code input.](https://docs.rual.nl/canvas-examples/component_input_code.png)](https://docs.rual.nl/canvas-examples/component_input_code.png?v=3)

## Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

- [Back to `Component UI`](https://docs.rual.nl/block-types/Component%20UI): Return to the main group to view all sub-groups

- [Back to `form`](https://docs.rual.nl/block-types/Component%20UI?group=form): Return to the group to view all blocks within this group

Was this page helpful? [Tell us what to improve](https://docs.rual.nl/support) · RUAL Docs is an integral component of the [RUAL ecosystem](https://rual.nl)
