Questions about Payment Form extension

Form payment amount field

  • Jeff
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
5 years 2 months ago #121305 by Jeff
Form payment amount field was created by Jeff
Hi,

We have a client who's form is remembering old payment amount values.

How can we force browsers not to autofill old values and leave filed blank?

Thanks

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

More
5 years 2 months ago #121308 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Form payment amount field
Hello Jeff

The main question here is did he login while accessing to the form or not? If he logged in, the system remembers his old data and fill-in the form automatically so that they won't have to re-enter information like first_name, last_name... each time they access to the form

If they are not logged in and the form fields are still filled automatically, I think it's because cache is enabled on the site and the page is cached

Tuan

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

  • Jeff
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
5 years 2 months ago #121328 by Jeff
Replied by Jeff on topic Form payment amount field
Yes they are logged in Joomla users. We need to find a way to stop the field being autofilled.

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

More
5 years 2 months ago #121338 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Form payment amount field
Hi Jeff

For this, you would have to customize the code

1. Open the file components/com_pmform/View/Form/Html.php, find this line of code:

$data = PMFormHelper::getFormData($rowFields, $userId, $config);

2. Change it to

$data = [];

After that, the issue should be sorted

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc