Questions about Payment Form extension

Read only custom field

  • Alison
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
1 week 9 hours ago #175510 by Alison
Read only custom field was created by Alison
HI 

I have a field that is populated using the 'depend on field'
It is a fee field and I do not want the user to be able to change the amount.
Is there any way to make the field 'read only' so it enters depending on another fields choice.

For example
in custom_field1 the user chooses "1 copy"
In custom_field2 it automatically enters £2.80 (from depend on) and the user cannot change this figure

 

thanks
Alison

Please Log in or Create an account to join the conversation.

More
1 week 14 minutes ago #175518 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Read only custom field
Hi Alison

In the field, there is a parameter called Extra Attributes. Enter readonly into that parameter and it should work

Regards,

Tuan
The following user(s) said Thank You: Alison

Please Log in or Create an account to join the conversation.

  • Alison
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
6 days 15 hours ago #175522 by Alison
Replied by Alison on topic Read only custom field
Perfect, thanks Tuan 🙏

Please Log in or Create an account to join the conversation.

More
6 days 14 hours ago #175523 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Read only custom field
You're welcome

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc