# Error when trying to implement a multiple\_select

**URL:** <https://forum.elixirforum.com/t/error-when-trying-to-implement-a-multiple-select/14525>\
**Category:** Questions\
**Tags:** ecto, phoenix, postgresql, select\
**Created:** [June 4, 2018, 4:40am UTC](https://forum.elixirforum.com/t/error-when-trying-to-implement-a-multiple-select/14525 "2018-06-04T04:40:26Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Marmanvii](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/marmanvii/32/10228_2.png) [@Marmanvii](https://forum.elixirforum.com/u/Marmanvii)\
**Post date:** [June 4, 2018, 7:03am UTC](https://forum.elixirforum.com/t/error-when-trying-to-implement-a-multiple-select/14525/8 "2018-06-04T07:03:12Z")

</div>

```elixir
defmodule Medica.Medico do
  use Medica.Web, :model

  schema "medico" do
    field :nombre, :string
    field :apellido, :string
    field :especialidad, :string
  end

  @doc """
  Builds a changeset based on the `struct` and `params`.
  """
  def changeset(struct, params \\ %{}) do
    struct
    |> cast(params, [:nombre,:apellido,:especialidad])
    |> validate_required([:nombre,:apellido,:especialidad])
  end
end

```

This one right?

---

_[View the full topic](https://forum.elixirforum.com/t/error-when-trying-to-implement-a-multiple-select/14525)._
