# How to pre-populate form fields

### Pre-populating Source object fields

To pre-populate Source object fields you should pass the fields values to the form parameters using fields API names.

On the example below you can see how could be configured the Parameters in case if you adding a form to the Lightning page. The form is configured on standard Event object.

<img src="/files/K3Gw8wbE0R96mjPvgkEV" alt="" class="gitbook-drawing">

Another example demonstrate how you can configure the form input Parameters in case if you are using the form [Navigate](/components/forms/tools/form-action.md#navigate-action-type) action.

<img src="/files/ehuFvx5l9a8yMCOaaBLZ" alt="" class="gitbook-drawing">

### Pre-populating Virtual fields

To pre-populate form Virtual fields you should use "Default Value" field option.

The format of the pre-populating value could be different based on the Virtual field type. Please look at the article, linked with the your Virtual field type.


---

# 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://docs.flexikanban.ai/components/forms/tricks-hints-and-best-practices/how-to-pre-populate-form-fields.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.
