Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.33 #2243

Merged
merged 101 commits into from
Dec 20, 2024
Merged

Release 2.33 #2243

merged 101 commits into from
Dec 20, 2024

Conversation

mrcasual
Copy link
Collaborator

@mrcasual mrcasual commented Dec 20, 2024

This release introduces support for the Source ID meta (Gravity Forms 2.9+), adds a new User Activation field to the View editor, and includes various fixes and enhancements.

🚀 Added

  • Support for the Source ID meta introduced in Gravity Forms 2.9.
  • New User Activation field in the View editor to activate users added by the Gravity Forms User Registration add-on.
  • Client-side validation of View editor settings to prevent incorrect values.
  • :initials merge tag modifier for Name fields to display initials.
  • :format merge tag modifier for field inputs (e.g., {Event Field:1.1:format:Y-m-d}).

🐛 Fixed

  • Merge tags in redirect URLs were not processed after editing or deleting an entry in the lightbox.
  • Individual Checkboxes field inputs incorrectly exported in CSV.
  • Custom permalinks not being used in embedded Views.
  • Deprecated filter notice when both the Advanced Filter extension (version 3 or newer) and Gravity Flow are active.
  • Labels for fields with empty values disappearing in mobile view when joining forms using the Multiple Forms extension.
  • Views defaulting to English instead of the site's language for users without certain capabilities.

🔧 Updated

💻 Developer Updates

  • Added gravityview/template/field/csv/tick filter to programmatically modify the checkbox "check" output in CSV.
  • Added gravityview/shortcode/after-processing action after a [gravityview] shortcode is finished.

💾 Build file (e621cbb).

zackkatz and others added 30 commits August 21, 2024 13:23
…s convert to initials function to use in multiple places
zahardev and others added 29 commits December 17, 2024 13:39
This PR addresses some minor things. I didn't want to push to `develop`
as we are about to release. But if this is agreeable, please merge.

There is a fix for the `is_approved` condition. That currently uses a
`LIKE` which is the default comparator. This is somewhat slow compared
to `=`, and it is prone to future errors where a status of `11` would
become a thing for example as that would then also match. In addition,
multiple forms already uses `=` for the joined forms. It's just the
original that doesn't.

Furthermore I updated the calculation of the field ID, as the can cause
duplicates on the page when multiple forms are joined. Fields from other
forms will still have the original form ID in the `id` attribute, which
can cause duplicates if another field with that ID exists. So I swap it
out with the correct form ID.

The same is done for the class name, but in order to prevent BC
compatibility on styling, it is ADDED instead of replaced. For the ID
this could be technically Backwards Incompatible; but practically there
shouldn't be two identical IDs, so that is already a problem.

💾 [Build
file](https://www.dropbox.com/scl/fi/938n1f1z3ambbsk6tp6yi/gravityview-2.32-5b9dc54c4.zip?rlkey=bvlh1dopn86232hgwhko56njo&dl=1)
(5b9dc54).
## Test in GF 2.8

- Confirm that the field doesn't appear in the Edit View field selector
- Confirm no other issues

## Test using GF 2.9

- [ ] Confirm ability to search by Source ID in the Search Bar
- [x] Confirm the Source ID field appears in the Edit View field
selector
- [x] By default, the Source ID field should display the ID of the page
that was used to submit the form.
- [x] Confirm the "Link to URL" links to that page when enabled
- [x] "Link Text" setting should show only when "Link to URL" is checked
- [x] Each of the "Link Text" choices should match the associated
setting
- [x] "Custom Text" works with custom text and merge tags
Adds a possibility to validate setting fields. Supports the following
rules:
required, max, min, email, integer, matches.

Rules example:

```
'validation' => [
			[
				'rule'    => 'required',
				'message' => __( 'Field is required', 'gk-gravityview' ),
			],
			[
				'rule'    => 'max:12',
				'message' => __( 'Should be less or equal 12', 'gk-gravityview' ),
			],
		];
```
		
Currently supports only frontend validation. We can improve it with a
backend validation using the same validation config.

Added a "Validate URL with tags" rule for "'No Entries Redirect URL'"
and "Edit Entry Redirect URL" using the "required" and "matches" rules.
Here is the URL rule Regex - https://regex101.com/r/I2QSEI/1
		

💾 [Build
file](https://www.dropbox.com/scl/fi/0cwgzmrbn8abisyorq074/gravityview-2.32-619e85cb9.zip?rlkey=nfaugp0czc32sdw3i9njx8ag4&dl=1)
(619e85c).
…#2180)

- Implements #2076
- Adds User Activation field type to GravityView that shows ONLY WHEN
User Activation is set to Manual
- Makes it work using ajax in multiple and single views

💾 [Build
file](https://www.dropbox.com/scl/fi/unlqo74nnxaf3n7tk6zej/gravityview-2.32-a0e94414b.zip?rlkey=56k1uhus33smpxjiigydi5dha&dl=1)
(a0e9441).
@mrcasual mrcasual merged commit 95c81ac into main Dec 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants