> 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/guida-alla-creazione-dei-servizi-digitali/creare-un-servizio/le-funzioni/creare-componenti-visibili-solo-alloperatore.md).

# Creare componenti visibili solo all'operatore

Nella sezione "API" del componente, compila la voce "Custom properties" con la proprietà "operator\_restricted" di valore "true"

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

Successivamente, nella sezione "Layout", compila la voce "HTML Attributes" con l'attributo "readonly" di valore "true".

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

Infine, nella sezione "Conditional", compila la voce "Advanced condition" con il codice

```javascript
“show = !instance.component.properties.hasOwnProperty('operator_restricted')”
```

<div data-full-width="true"><figure><img src="/files/OWxxGt5VJeku4xuVnczB" alt=""><figcaption></figcaption></figure> <figure><img src="/files/nGfYFJJrhLnje0EztD3L" alt=""><figcaption></figcaption></figure></div>


---

# 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:

```
GET https://docs.opencityitalia.it/guida-alla-creazione-dei-servizi-digitali/creare-un-servizio/le-funzioni/creare-componenti-visibili-solo-alloperatore.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
