> For the complete documentation index, see [llms.txt](https://guide.form.gov.sg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.form.gov.sg/user-guides/advanced-guide/ranking-options.md).

# Ranking options

FormSG does not have a field type for ranking options. However, there are many ways to present ranking of options. This section will show a creative workaround!

{% tabs %}
{% tab title="Text tutorial" %}

### <img src="/files/j6GutTRDRrofXv3qKMKQ" alt="" data-size="line"> Text Tutorial: Ranking options

**Step 1: Create a table field**

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

**Step 2: Amend the question**

E.g. Rank your favourite fruits

Do provide clear instructions for your respondents so that they do not pick the same option twice (if that is intended).

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

**Step 3: Adjust number of rows**

The no. of rows depend on the ranks required.&#x20;

E.g. 5 rows are required for 1st-5th.

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

**Step 4: Create your ranks, as options**

E.g 1st, 2nd, 3rd

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

**Step 5: Create an additional column**

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

**Step 6: Create the options, that will be ranked**

E.g pear, apple, orange

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

**Step 7: Preview your question!**

<figure><img src="/files/b7Ctpg14rHAyAhx4WCgh" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# 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://guide.form.gov.sg/user-guides/advanced-guide/ranking-options.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.
