Skip to content

v0.6.1

Latest

Choose a tag to compare

@oxyc oxyc released this 31 Jul 11:31
v0.6.1

Fixes

Actually show the rejection message (#7)

The message this plugin sets when it rejects a submission was never rendered. It was written to $form['validation_summary_message'], which Gravity Forms only reads as a field context property, never off the form array — and $form['failed_validation_page'] was dead in the same way. Both lines looked functional and did nothing.

Visitors instead saw GF's unconditional fallback:

There was a problem with your submission. Please review the fields below.

An ALTCHA rejection highlights no field, so that instruction points at nothing and sends people hunting for a broken field that doesn't exist. It's how the v0.6.0 expiry bug was originally misdiagnosed as a form-configuration problem.

gform_validation_message is now hooked so the message reaches the DOM, scoped to forms rejected in the current request — ordinary field errors keep GF's wording. The markup mirrors GFFormDisplay::get_validation_errors_markup(), deriving the hide_summary class from the form's own validationSummary setting rather than hardcoding it, so existing theme styling and admin choices are preserved.

The message text is unchanged and still filterable via genero/gravityforms_altcha/error_message.

Full changelog: v0.6.0...v0.6.1