# Make the 'Amount' field in the payment request pop-up non-editable

**URL:** <https://community.hivepress.io/t/make-the-amount-field-in-the-payment-request-pop-up-non-editable/8001>\
**Category:** Marketplace\
**Tags:** marketplace\
**Created:** [October 30, 2023, 9:04am UTC](https://community.hivepress.io/t/make-the-amount-field-in-the-payment-request-pop-up-non-editable/8001 "2023-10-30T09:04:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aru](https://community.hivepress.io/user_avatar/community.hivepress.io/aru/32/9709_2.png) [@Aru](https://community.hivepress.io/u/Aru)\
**Post date:** [October 30, 2023, 9:04am UTC](https://community.hivepress.io/t/make-the-amount-field-in-the-payment-request-pop-up-non-editable/8001/1 "2023-10-30T09:04:43Z")

</div>

Hello everyone,  
Is it possible to make the “Amount” field non-editable? This way, we can avoid having to check if the requested amount is correct every time. Attached screenshot.

Thank you

 ![Immagine 2023-10-30 100005](https://community.hivepress.io/uploads/default/original/2X/4/45fd360b450aa0446c327389610ed7acf61be458.jpeg)

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [October 31, 2023, 1:29pm UTC](https://community.hivepress.io/t/make-the-amount-field-in-the-payment-request-pop-up-non-editable/8001/5 "2023-10-31T13:29:49Z")

</div>

Hi,

Please note that you can specify the minimum payout amount in HivePress \> Settings \> Payouts. Also, a vendor will not be able to make a payout for an amount that exceeds their balance.

​I hope this is helpful to you.

---

<div class="post-metadata">

**Author:** ![Aru](https://community.hivepress.io/user_avatar/community.hivepress.io/aru/32/9709_2.png) [@Aru](https://community.hivepress.io/u/Aru)\
**Post date:** [October 31, 2023, 1:59pm UTC](https://community.hivepress.io/t/make-the-amount-field-in-the-payment-request-pop-up-non-editable/8001/6 "2023-10-31T13:59:42Z")

</div>

perhaps I didn’t explain myself well, I would like the field not to be editable because if for example I as a seller want to request a payment of 100 instead of 80 I can do so, I saw that the field auto-fills with the correct amount but is editable.

---

<div class="post-metadata">

**Author:** ![yevhen](https://community.hivepress.io/user_avatar/community.hivepress.io/yevhen/32/23_2.png) [@yevhen](https://community.hivepress.io/u/yevhen)\
**Post date:** [November 1, 2023, 7:20pm UTC](https://community.hivepress.io/t/make-the-amount-field-in-the-payment-request-pop-up-non-editable/8001/8 "2023-11-01T19:20:25Z")

</div>

Please try this PHP code snippet

```auto
add_filter(
	'hivepress/v1/forms/payout_request',
	function($args){
		
		if(isset($args['fields']['amount'])){
			$args['fields']['amount']['attributes']['readonly'] = true;	
		}
		
		return $args;
	},
	1000
);

```

---

<div class="post-metadata">

**Author:** ![Aru](https://community.hivepress.io/user_avatar/community.hivepress.io/aru/32/9709_2.png) [@Aru](https://community.hivepress.io/u/Aru)\
**Post date:** [November 2, 2023, 7:57am UTC](https://community.hivepress.io/t/make-the-amount-field-in-the-payment-request-pop-up-non-editable/8001/9 "2023-11-02T07:57:07Z")

</div>

it’s exactly what I wanted! thank you very much it works!

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [December 2, 2023, 7:57am UTC](https://community.hivepress.io/t/make-the-amount-field-in-the-payment-request-pop-up-non-editable/8001/10 "2023-12-02T07:57:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
