> For the complete documentation index, see [llms.txt](https://docs.opencityitalia.it/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opencityitalia.it/stanza-del-cittadino/guida-alla-creazione-dei-servizi-digitali/creare-un-servizio/i-componenti/impostare-le-scelte-utente-select-boxes-e-radio-button.md).

# Impostare le scelte utente : select boxes e radio button

Come admin, disponi di due componenti che ti permettono di raccogliere le preferenze degli utenti durante la compilazione di un servizio:

* [select boxes](#select-boxes);
* [radio button](#il-radio-button).

## Select boxes

Per permettere all'utente di selezionare una o più opzioni del servizio, trascina nel modulo il componente "Select Boxes"

<figure><img src="/files/u54X6c7zvdNQ6JrXIfon" alt=""><figcaption></figcaption></figure>

Una volta fatto, come per il [componente "Select"](/stanza-del-cittadino/guida-alla-creazione-dei-servizi-digitali/creare-un-servizio/i-componenti/la-select.md), collocati nella sezione "Data" e compila la voce "Data source label" con le opzioni che l'utente dovrà indicare in fase di richiesta, specificando il nome (*label*) e il valore (*value*).

<figure><img src="/files/EqVvJ9iwbUiXbNA8SjFo" alt=""><figcaption></figcaption></figure>

## Il radio button

Per far scegliere all'utente una sola opzione tra quelle previste, trascina nel modulo il componente "Radio button".

<figure><img src="/files/8XciuNxZVOKvVdrTiEI1" alt=""><figcaption></figcaption></figure>

Una volta fatto, collocati nella sezione "Data" e compila la voce "Data source label" con le opzioni che l'utente dovrà indicare in fase di richiesta, specificando il nome (*label*) e il valore (*value*).

<figure><img src="/files/GxjoGPMNSfmOD0DFpk0i" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Sia per la checkbox sia per il radio button, i valori indicati nella colonna *value* sono necessari per la gestione delle [relazioni tra componenti](/stanza-del-cittadino/guida-alla-creazione-dei-servizi-digitali/creare-un-servizio/le-funzioni/relazione-tra-i-dati-i-conditional.md).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.opencityitalia.it/stanza-del-cittadino/guida-alla-creazione-dei-servizi-digitali/creare-un-servizio/i-componenti/impostare-le-scelte-utente-select-boxes-e-radio-button.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
