You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a few fields, a Section field and some fields into the section.
Try multi selecting with ctrl + click on fields outside the Section and then try adding the Section field to the selected groups by clicking on the Section header.
Confirm that the section field is selectable with other fields.
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
Use the following commands to manage reviews:
@coderabbitai resume to resume automatic reviews.
@coderabbitai review to trigger a single review.
Use the checkboxes below for quick actions:
▶️ Resume reviews
🔍 Trigger review
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 26b8e095-4f74-4568-ad76-2fd9450a812d
📥 Commits
Reviewing files that changed from the base of the PR and between 889d6af and 34864c4.
📒 Files selected for processing (2)
js/formidable_admin.js
js/src/admin/admin.js
🚧 Files skipped from review as they are similar to previous changes (1)
js/src/admin/admin.js
Included review availability: Your plan includes up to 1 review per rolling hour; 0 remain after this review.
📝 Walkthrough
Walkthrough
Adds Ctrl/Meta-click handling to the admin field builder. Modifier-clicks toggle the containing field group, update the selected-group count and multiselect UI, and skip normal field selection. Plain clicks retain the existing behavior.
Ctrl/Meta-clicks toggle the containing field group, update the selected-group count and multiselect state, and return before the normal field-selection action.
This localized change addresses section-field multiselect behavior, and no actionable merge-blocking risk remains beyond normal checks and review.
Possibly related PRs
Strategy11/formidable-forms#3236: Both changes modify field-group behavior in js/src/admin/admin.js, but they affect different functions and workflows.
Hi @AbdiTolesa,
Multi-selecting including the Section field works as expected.
However, when trying to deselect fields in a group selection (e.g., Ctrl + Click to remove one item from the group), it doesn't work properly since the field remains selected.
Please see screen recording for reference: https://www.loom.com/share/1bd785331c9b44ffa884dd3c3bfa959e
Hi @AbdiTolesa,
Multi-selecting including the Section field works as expected.
However, when trying to deselect fields in a group selection (e.g., Ctrl + Click to remove one item from the group), it doesn't work properly since the field remains selected.
Multi-selecting including the Section field works as expected.
However, when trying to deselect fields in a group selection (e.g., Ctrl + Click to remove one item from the group), it doesn't work properly since the field remains selected.
@AbdiTolesa If I click on the first field, then hold Shift and click on a field inside a section, it selects all fields in the form. Please see this screencast:
@AbdiTolesa If I click on the first field, then hold Shift and click on a field inside a section, it selects all fields in the form. Please see this screencast:
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
js/src/admin/admin.js (1)
5690-5694: Keep multi‑select UI in sync on Ctrl/Cmd click
You add the class and return, but don’t call the existing multi‑select sync flow. The popup/controls won’t appear until a later action. Reuse the same path as group clicks by invoking syncAfterMultiSelect immediately.
Apply this minimal change:
- if ( e?.metaKey || e?.ctrlKey ) {- // Add the target to list of selected fields.- this.closest( 'ul' ).classList.add( 'frm-selected-field-group' );- return;- }+ if ( e?.metaKey || e?.ctrlKey ) {+ // Add the target to list of selected fields and sync UI state.+ const ul = this.closest( 'ul.frm_sorting' ) || this.closest( 'ul' );+ if ( ul ) {+ ul.classList.add( 'frm-selected-field-group' );+ const count = jQuery( '.frm-selected-field-group' ).length || 1;+ syncAfterMultiSelect( count );+ maybeHideFieldGroupMessage();+ }+ return;+ }
Note: Ctrl/Cmd‑click deselect toggling is tracked in formidable-pro#6029 and can remain out of scope here. Please just verify the popup appears right after the first Ctrl/Cmd click.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between a636cfa and 597dea4.
⛔ Files ignored due to path filters (1)
js/formidable-settings-components.js.map is excluded by !**/*.map, !**/*.map
We reviewed changes in e4dc1b0...226d435 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.
Some issues found as part of this review are outside of the diff in this pull request and aren't shown in the inline review comments due to GitHub's API limitations. You can see those issues on the DeepSource dashboard.
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.
The reason will be displayed to describe this comment to others. Learn more.
Variable $wp_list_table might not be defined
A variable has been used but not defined, which may result in warnings during program execution. This can also cause bugs since the intended usage scope of the variable is not known.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix https://github.com/Strategy11/formidable-pro/issues/5229
Test steps
ctrl + clickon fields outside the Section and then try adding the Section field to the selected groups by clicking on the Section header.CleanShot.2025-10-01.at.16.26.33.mp4
CleanShot.2025-10-01.at.16.16.00.mp4
Summary by CodeRabbit