πŸ‡¦πŸ‡ΊAustralia @dalpasso

Account created on 11 December 2019, over 4 years ago
#

Recent comments

πŸ‡¦πŸ‡ΊAustralia dalpasso

Hi @shubham_jain,

I'm not sure if this is a correct solution but I noticed that the template was not being loaded. I've added the theme in to the SignatureWidget class which has loaded the signature pad correctly.

$element += [
'#theme' => 'signature',
'#type' => 'textarea',
'#default_value' => $value,
'#attributes' => $sign_data_attributes,
'#attached' => [
'library' => ['signature_field/signature_pad'],
],
];

I can't submit the form in my environment right now but do you think this is a safe solution to implement?

Thanks,

πŸ‡¦πŸ‡ΊAustralia dalpasso

Hi @shubham_jain,

I have done a test on a fresh install of D9.5.10 and have seen that the color (deprecated) module is enabled when installing v8.x-2.1. This would not happen when doing an upgrade in my environment so I think this explains the undefined t console error. I'll remove it from the issue.

v3.0.3 doesn't seem to need color, but it's pad is not visible on the edit content screen. The data portion is enabled by default and if I disable the data portion all I get is the field title on the edit screen. The "undefined (reading 'getContext') error is visible in the console window.

πŸ‡¦πŸ‡ΊAustralia dalpasso

Hi and thanks for your reply @shubham_jain I will try to explain the situation a little more:

D9.5.10, Signature Field 8.x-1.0-rc1

We have an existing form with a working signature field. If I complete an upgrade via the GUI (no composer etc.) to version 2.1 and try to load the same form the signature panel is not visible. No errors in logs and can submit the form with no errors but unable to take a signature as only the data field is visible.

If I look in the console I see the js error with signature_pad, line 88, Uncaught TypeError: t is undefined.

I also noticed that if I try to edit the form display to hide the signature data filed it is not hidden and the form is unchanged.

πŸ‡¦πŸ‡ΊAustralia dalpasso

Variation of #5 and #24 worked for me with D9.5.10, recaptcha 8.x-3.2:

Added these lines to recaptcha.module after the last use statement:

require_once dirname(__FILE__) . '/src/ReCaptcha/ReCaptcha.php';
require_once dirname(__FILE__) . '/src/ReCaptcha/RequestMethod.php';
require_once dirname(__FILE__) . '/src/ReCaptcha/RequestParameters.php';
require_once dirname(__FILE__) . '/src/ReCaptcha/Response.php';

Copied these class files from version: v8.x-3.1 of the module into recaptcha/src/ReCaptcha/

Production build 0.69.0 2024