# bit-form/2.9.1/includes/Admin/Form/InitJs/Select.php

Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator &amp; Custom Form Builder, version 2.9.1. 15 lines.

- Page: https://pluginprobe.com/plugins/bit-form/2.9.1/code/includes/Admin/Form/InitJs/Select.php
- Raw: https://pluginprobe.com/plugins/bit-form/2.9.1/raw/includes/Admin/Form/InitJs/Select.php
- Modified: 2023-04-10T07:53:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/bit-form/2.9.1/code/includes/Admin/Form/InitJs/Select.php#L10-L20`.

```php
<?php

namespace BitCode\BitForm\Admin\Form\InitJs;

class Select
{
  public static function init($fk, $config, $contentId)
  {
    $selector = "#$contentId .{$fk}-dpd-fld-wrp";
    return <<<INIT
      window.bf_globals.{$contentId}.inits['{$fk}'] = new bit_dropdown_field("{$selector}",{$config});
INIT;
  }
}

```
