- Issue created by @cweiske
- Status changed to Closed: won't fix
over 1 year ago 2:20pm 14 June 2023 - π©πͺGermany cweiske
It seems that it is possible to fetch the input values via
$form_state->getFormObject()->getEntity()->data
, so honeypot can set the default values itself.
This bug is invalid then. - Status changed to Active
over 1 year ago 5:52am 15 June 2023 - π©πͺGermany cweiske
My patch for honeypot π homepage field not filled in WebformSubmissionForm::validateFormValues Closed: works as designed that sets #default_value when a
webform_submission
is available was rejected with the justifiction that honeypot uses the Form API correctly, which I understand.Now there is the problem that webform expects the input in
#default_value
for programmatic submissions viaWebformSubmissionForm::submitFormValues()
, but honeypot fields do not provide them.The only solution I see is that
honeypot_webform_submission_form_alter
modifies the honeypot fields after they have been added to the form by honeypot and adds the#default_value
when necessary.Is that evaluation correct? Or is there a better way?