> For the complete documentation index, see [llms.txt](https://docs.payaddons.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payaddons.com/dynamic-field-by-request-parameter.md).

# 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>
