# 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="https://1993841678-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6FFXqELmFsGrfOxBauwC%2Fuploads%2FxsFJMswbS77w8aoHcWdU%2Fimage.png?alt=media&#x26;token=aa4ca21f-328c-4272-b8a8-5f55e06c4483" 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="https://1993841678-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6FFXqELmFsGrfOxBauwC%2Fuploads%2FMFUOmF9rO52k9gC5oFjz%2Fimage.png?alt=media&#x26;token=9678d5b2-ac33-484b-93e2-7013399cc9d9" 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="https://1993841678-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6FFXqELmFsGrfOxBauwC%2Fuploads%2Fw1UbVe6ppZPWTJyVh3bf%2Fimage.png?alt=media&#x26;token=501c0f56-1d9e-42b5-9364-98ecbc34c9ae" alt=""><figcaption></figcaption></figure></div>

<div align="left"><figure><img src="https://1993841678-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6FFXqELmFsGrfOxBauwC%2Fuploads%2FL8gwu8WeXyePj1Hqwq5a%2Fimage.png?alt=media&#x26;token=4a882486-cfb8-4f5b-be29-2cb13ba92bec" 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="https://1993841678-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6FFXqELmFsGrfOxBauwC%2Fuploads%2FhOi7TW7O5pfAqdDYnczh%2Fimage.png?alt=media&#x26;token=0383f926-2f4a-4199-b1c6-130286ff2735" 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="https://1993841678-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6FFXqELmFsGrfOxBauwC%2Fuploads%2FhDtpwgPBVkDxOTgfb0Ym%2Fimage.png?alt=media&#x26;token=f787526d-a11a-45c0-a6c0-6baa7cd1f8f2" alt=""><figcaption></figcaption></figure>
