# CustomFieldChoicesInput

Source: https://swapcard.dev/organizer/content-api/graphql-event-api-schema/inputs/custom-field-choices-input


const [open, setOpen] = useState(startOpen);
  return (
    <details {...(open ? { open: true } : {})} className="details" style={{ border:'none', boxShadow:'none', background:'var(--ifm-background-color)' }}>
      <summary
        onClick={(e) => {
          e.preventDefault();
          setOpen((open) => !open);
        }}
        style={{ listStyle:'none' }}
      >
      {open ? dataOpen : dataClose}
      </summary>
      {open && children}
    </details>
  );
};

No description

```graphql
input CustomFieldChoicesInput {
  overwrite: Boolean
  keys: [String!]!
}
```

### Fields

#### [<code style={{ fontWeight: 'normal' }}>CustomFieldChoicesInput.<b>overwrite</b></code>](#)<Bullet />[`Boolean`](/organizer/content-api/graphql-event-api-schema/scalars/boolean) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> If true all choices are replaced by "keys", otherwise only new keys are added.
> 

#### [<code style={{ fontWeight: 'normal' }}>CustomFieldChoicesInput.<b>keys</b></code>](#)<Bullet />[`[String!]!`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> The list of selected choices keys. The choices can be managed with mutation "setCustomFieldChoices".
> 

### Member Of

[`CustomFieldUnionInput`](/organizer/content-api/graphql-event-api-schema/inputs/custom-field-union-input)  <Badge class="badge badge--secondary" text="input"/>
