> For the complete documentation index, see [llms.txt](https://docs.altu.d1.cx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.altu.d1.cx/build/assistentes/builder/componentes/input/feedback_custom.md).

# Feedback Custom

## Estrutura

{% hint style="warning" %}
Recurso disponível apenas no canal **Widget**
{% endhint %}

```javascript
{
    "default": {
        "type": "feedback_custom",
        "payload": {
            "pick": "pergunta",
            "btn_label": "btn_label"
        }
    }
}
```

## Atributos

* **type:** feedback\_custom
* **payload:**
  * **pick:** pergunta exibida no componente
  * **btn\_label:** texto (label) do botão de envio
  * **range:** valores que podem variar entre 3, 5 ou 7, sendo o último default
  * **reverse:** true ou false, sendo o valor default false
  * **custom:** array que possibilita a inclusão de links ilimitados de imagens para customizar o feedback

## Exemplos

{% tabs %}
{% tab title="Exemplo 1" %}

```javascript
{
    "default": {
        "type": "feedback_custom",
        "payload": {
            "pick": "pergunta",
            "custom": [
                "https://s3-sa-east-1.amazonaws.com/altu-assets/widgets/components/general/feedback-custom/img/emoji-1.svg",
                "https://s3-sa-east-1.amazonaws.com/altu-assets/widgets/components/general/feedback-custom/img/emoji-2.svg",
                "https://s3-sa-east-1.amazonaws.com/altu-assets/widgets/components/general/feedback-custom/img/emoji-3.svg",
                "https://s3-sa-east-1.amazonaws.com/altu-assets/widgets/components/general/feedback-custom/img/emoji-4.svg",
                "https://s3-sa-east-1.amazonaws.com/altu-assets/widgets/components/general/feedback-custom/img/emoji-5.svg",
                "https://s3-sa-east-1.amazonaws.com/altu-assets/widgets/components/general/feedback-custom/img/emoji-6.svg",
                "https://s3-sa-east-1.amazonaws.com/altu-assets/widgets/components/general/feedback-custom/img/emoji-7.svg"
            ],
            "btn_label": "OK"
        }
    }
}
```

{% endtab %}

{% tab title="Preview no Widget" %}
![](/files/-MDWQ96iqHNVoucVE8QF)
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Exemplo 2" %}

```javascript
{
    "default": {
        "type": "feedback_custom",
        "payload": {
            "pick": "pergunta",
            "range": 7,
            "reverse": "true",
            "btn_label": "OK"
        }
    }
}
```

{% endtab %}

{% tab title="Preview no Widget" %}
![](/files/-MDWQBpub00ThT360I7w)
{% endtab %}
{% endtabs %}
