> For the complete documentation index, see [llms.txt](https://help.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.autify.com/nocode-web/faq/faq-create-scenario/is-it-possible-to-use-data-to-select-radio-buttons-or-checkboxes-in-a-click-step.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# クリックステップでデータを使って、ラジオボタンやチェックボックスを選択することはできますか？

クリックステップでは、データ機能を使ってラジオボタンやチェックボックスを選択することはできませんが、JSステップを利用することで、データ機能の値に応じた選択を行える場合があります。

## 設定例

[データ機能](https://help.autify.com/nocode-web/autify-university/foundation/creating-a-scenario/creating-data.md)を使って、ラジオボタンを動的に選択する設定例です。

以下の図のようなアプリケーションで、ラジオボタンの選択肢をテストデータごとに切り替えて操作したい場合などに参考にしてください。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-fe383801a812af2378d2d96349d98d4cdd08afd4%2FData-click03\(2\).png?alt=media)

### 設定手順

1. シナリオの **データ** タブから、各選択肢を指定するための値（セレクターやXPath、value属性など）を含んだCSVファイルをアップロードしておきます。

   ![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-e0ee5b47d056f38913596c1e051add960c64ee99%2FData-click02\(1\).png?alt=media)
2. クリックステップを、[JSステップ](https://help.autify.com/nocode-web/autify-university/advanced/js-steps/javascript-steps.md)でクリック操作に置き換えます。
3. JSステップの要素を指定する部分を[引数](https://help.autify.com/nocode-web/tips-1/js-steps-tips/example-of-using-return-and-argument-at-js-step.md)に設定します。
4. 引数の値として、登録したデータを指定します。

![](https://50135409-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fof7cb8AGXhWvWThq3R0w%2Fuploads%2Fgit-blob-507f9ccb3268aa18cf1a4c630717a95f3489e133%2FData-click01\(1\).png?alt=media)

{% hint style="info" %}
テスト対象のアプリケーションに合わせて、JSステップの記述や対象要素のセレクターもしくはXPathを指定してください。
{% 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.autify.com/nocode-web/faq/faq-create-scenario/is-it-possible-to-use-data-to-select-radio-buttons-or-checkboxes-in-a-click-step.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
