PHPackages                             nathancox/hasoneautocompletefield - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nathancox/hasoneautocompletefield

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

nathancox/hasoneautocompletefield
=================================

A CMS form field for adding has\_one relationships using autocomplete

2.13.0(1y ago)5147.6k↓16.5%12[6 issues](https://github.com/nathancox/silverstripe-hasoneautocompletefield/issues)3MITPHP

Since Jun 12Pushed 1y ago4 watchersCompare

[ Source](https://github.com/nathancox/silverstripe-hasoneautocompletefield)[ Packagist](https://packagist.org/packages/nathancox/hasoneautocompletefield)[ Docs](https://github.com/nathancox/silverstripe-hasoneautocompletefield)[ RSS](/packages/nathancox-hasoneautocompletefield/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (12)Used By (3)

SilverStripe HasOneAutocompleteField
====================================

[](#silverstripe-hasoneautocompletefield)

Overview
--------

[](#overview)

This module adds a field for using an autocomplete dropdown to assign a has\_one relationship. It's styled after the URLSegment field.

Maintainer Contacts
-------------------

[](#maintainer-contacts)

- Nathan Cox ()

Requirements
------------

[](#requirements)

- SilverStripe 4.0+

For SilverStripe 3.x see the version 1 branch on Github:

Installation Instructions
-------------------------

[](#installation-instructions)

Via composer:

```
composer require nathancox/hasoneautocompletefield

```

Or manually download the module and place it in a folder called hasoneautocompletefield in your site root.

Visit yoursite.com/dev/build

Documentation
-------------

[](#documentation)

Example code:

```
