# Dynamic field by request parameter

### How to Use a URL Query Parameter as a Payment Price

The core idea is to add a hidden form field and leverage Elementor Dynamic tags with Request Parameters to prefill values from the URL. Then, in your payment settings, you can use **shortcodes** to link the form value with your payment process.

### Step-by-Step Instructions:

1. Create a hidden field for the amount or even the price ID for a subscription

<div align="left"><figure><img src="/files/JWAkQKthEZTJXuMqlgvz" alt=""><figcaption></figcaption></figure></div>

2. Given a meaningful field ID and click the dynamic tag icon in the Default Value input box

<div align="left"><figure><img src="/files/zRAmoxdIzZqYAiQgIOYa" alt=""><figcaption></figcaption></figure></div>

3. Choose **Site → Request Parameter** from the dynamic tag list and select GET type

<div align="left"><figure><img src="/files/ddm2g2OSo9rrf0A5pkV8" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="/files/zMYBPjBGxNTwALOWRVWV" alt=""><figcaption></figcaption></figure></div>

4. Copy the generated shortcode, then in the "Actions After Submit" list, add "Credit Card Submission" - this will display the Credit Card Submission tab where all your payment settings are located
5. Find the amount field in the payment settings and paste the shortcode.

<div align="left"><figure><img src="/files/UOTV0mjNY1lKRlFRV8OU" alt=""><figcaption></figcaption></figure></div>

### Testing by giving an amount parameter in the URL

Test your setup by adding a `amount` parameter with a value in the URL, such as: <https://example.com/?p=1336&amount=100>

<figure><img src="/files/6bsCjUS9Z6ncdKDtlRx0" alt=""><figcaption></figcaption></figure>


---

# 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.payaddons.com/dynamic-field-by-request-parameter.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.
