---
name: "HTML::FormHandler::Field::PrimaryKey"
section: "3pm"
platform: "linux"
package: "libhtml-formhandler-perl"
version: "0.40068-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/HTML::FormHandler::Field::PrimaryKey"
---

# HTML::FormHandler::Field::PrimaryKey(3pm)

primary key field

## NAME

HTML::FormHandler::Field::PrimaryKey - primary key field

## VERSION

version 0.40068

## SYNOPSIS

This field is for providing the primary key for Repeatable fields:

```
   has_field 'addresses' => ( type => 'Repeatable' );
   has_field 'addresses.address_id' => ( type => 'PrimaryKey' );
```

Do not use this field to hold the primary key of the form's main db object (item). That primary key is in the 'item\_id' attribute.

## AUTHOR

FormHandler Contributors - see HTML::FormHandler

## COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Gerda Shank.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
