# JSON-Based input forms

### Introduction

Pipelines defined using the "Code" mode require an XML or JSON-based input form to define the fields shown on the launch view in the user interface (UI).

To create a JSON-based Nextflow (or CWL) pipeline, go to **Projects > your\_project > Flow > Pipelines > +Create > Nextflow (or CWL) > JSON-based**.

The files listed here, located on the inputform files tab, work together for evaluating and presenting JSON-based input.

* [**inputForm.json**](/connected-analytics/project/p-flow/f-pipelines/json-based-input-forms/inputform-json.md) contains the actual input form which is rendered when starting the pipeline run.
* [**onRender.js**](/connected-analytics/project/p-flow/f-pipelines/json-based-input-forms/onrender.js.md) is triggered when a value is changed.
* [**onSubmit.js**](/connected-analytics/project/p-flow/f-pipelines/json-based-input-forms/onsubmit.js.md) is triggered when starting a pipeline via the GUI or API.
* [**onFinish.js**](/connected-analytics/project/p-flow/f-pipelines/json-based-input-forms/onfinished.js.md) (optional, not automatically created) is triggered once the pipeline analysis has been completed

Use **+ Create** to add additional files and **Simulate** to test your inputForms.

Scripting execution supports crossfield validation of the values, hiding fields, making them required, .... based on value changes.


---

# Agent Instructions: 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://help.connected.illumina.com/connected-analytics/project/p-flow/f-pipelines/json-based-input-forms.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.
