Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
8a0c7e4
Add a form outline to improve UX in large forms
Crabcyborg Oct 28, 2026
cb4b421
Add a form outline to improve UX in large forms
Crabcyborg Oct 28, 2026
c314bc2
Revert htaccess change
Crabcyborg Oct 28, 2026
1e0f8a8
feat(builder): add section jumps to form outline
Crabcyborg Oct 28, 2026
216450f
fix(builder): hide collapsed marker in outline
Crabcyborg Oct 28, 2026
ffb878b
fix(builder): align outline navigation to field top
Crabcyborg Oct 28, 2026
3d08383
fix(builder): position outline target below sticky tabs
Crabcyborg Oct 28, 2026
52a57fd
fix(builder): scroll directly to outline field
Crabcyborg Oct 28, 2026
989307d
fix(builder): restore outline panel scrolling
Crabcyborg Oct 28, 2026
773e5c1
feat(builder): move form outline to a sidebar tab
Crabcyborg Oct 28, 2026
e5a397b
perf(builder): render form outline on demand
Crabcyborg Nov 2, 2026
dc20c4b
feat(builder): open the form outline from a floating button
Nov 4, 2026
ad7e2da
Merge pull request #3666 from Strategy11/form_outline-ui
Crabcyborg Nov 4, 2026
c0e191d
Merge branch 'master' into form_outline
Crabcyborg Nov 4, 2026
f72b2d0
Move the form outline into an Outline tab in the builder sidebar
Nov 11, 2026
79f38ea
Merge pull request #3689 from Strategy11/form_outline-ui
Crabcyborg Nov 11, 2026
30739cb
Merge branch 'master' into form_outline
Crabcyborg Nov 11, 2026
52613e1
Merge master and optimize the form outline
Crabcyborg Nov 11, 2026
ed54db3
fix(builder): group outline fields by section
Crabcyborg Nov 11, 2026
deaaca1
test(builder): fix outline tab assertions
Crabcyborg Nov 11, 2026
4578bca
fix(builder): preserve nested outline results
Crabcyborg Nov 11, 2026
fb27248
fix(builder): use reverse() in the form outline section pass
Crabcyborg Nov 12, 2026
fe3971f
chore: merge master into form_outline
Crabcyborg Nov 16, 2026
7ebfd31
Merge master into form_outline
Crabcyborg Nov 16, 2026
f303e06
Merge remote-tracking branch 'origin/master' into form_outline
Crabcyborg Nov 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bin/build-plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ fi
# Run the build.
status "Installing dependencies..."
npm install
# npm install can replace a symlinked node_modules, so forget any npm path bash cached from it.
hash -r
status "Generating build..."
npm run build
status "Minimizing JS..."
Expand Down
28 changes: 28 additions & 0 deletions classes/views/frm-forms/_outline_panel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php
/**
* The Outline tab in the builder's side panel: search and jump to pages, sections and fields.
*
* @package Formidable
*/

if ( ! defined( 'ABSPATH' ) ) {
die( 'You are not allowed to call this page directly.' );
}
?>
<div id="frm-builder-outline" class="tabs-panel frm-builder-outline-panel">
<p class="frm-search">
<label class="screen-reader-text" for="frm-builder-outline-search-input">
<?php esc_html_e( 'Search pages and fields', 'formidable' ); ?>
</label>
<?php FrmAppHelper::icon_by_class( 'frmfont frm_search_icon frm_svg20' ); ?>
<input type="search" id="frm-builder-outline-search-input" class="frm-search-input" autocomplete="off" placeholder="<?php esc_attr_e( 'Search pages and fields', 'formidable' ); ?>" />
</p>
<nav aria-label="<?php esc_attr_e( 'Form Outline', 'formidable' ); ?>">
<ul class="frm-builder-outline-list"></ul>
</nav>
<div class="frm-builder-outline-empty frm_hidden">
<strong class="frm-builder-outline-empty-title"></strong>
<span class="frm-builder-outline-empty-text"></span>
</div>
<p class="screen-reader-text frm-builder-outline-status" aria-live="polite"></p>
</div>
8 changes: 8 additions & 0 deletions classes/views/frm-forms/add_field_links.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
<?php esc_html_e( 'Field Options', 'formidable' ); ?>
</a>
</li>
<li class="hide-if-no-js">
<a href="#frm-builder-outline" id="frm-builder-outline-toggle">
<?php esc_html_e( 'Outline', 'formidable' ); ?>
</a>
</li>
<?php do_action( 'frm_extra_form_instruction_tabs' ); ?>
</ul>
</div>
Expand Down Expand Up @@ -223,6 +228,9 @@
</form>
</div>
</div>
<div>
<?php require FrmAppHelper::plugin_path() . '/classes/views/frm-forms/_outline_panel.php'; ?>
</div>
<?php
if ( isset( $form ) ) {
/**
Expand Down
1 change: 1 addition & 0 deletions classes/views/frm-forms/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
</form>

</div>

</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion css/frm_admin.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions images/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion js/formidable_admin.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions js/src/admin/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const { allowContainerDrop } = require( './fieldPlacement' );
const { getRangeSettingsDefaults, validateNumberRangeSetting, validateStepSetting, validateRangeSettings } = require( './settings/validateRangeSettings' );
const { initFieldListHoverPill } = require( './fieldListHoverPill' );
const { initShowBoxIconSwap } = require( './showBoxIconSwap' );
const { initFormOutline } = require( './formOutline' );
const { initFieldSizePreview } = require( './fieldSizePreview' );
const { hydrateBuilderSelect, hydrateBuilderSelectsIn } = require( './sharedSelectOptions' );
const { processFieldLoadBatch } = require( './fieldLoadBatch' );
Expand Down Expand Up @@ -13546,6 +13547,7 @@ window.frmAdminBuild = frmAdminBuildJS();
jQuery( document ).ready(
() => {
frmAdminBuild.init();
initFormOutline();

initShowBoxIconSwap();

Expand Down
2 changes: 1 addition & 1 deletion js/src/admin/fieldPreviews.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function createField( template, data, strings ) {

const label = container.querySelector( '.frm_primary_label' );
label.id = `field_label_${ id }`;
// Keep the name in its own span, like show_label_on_form_builder in PHP, so live label edits leave the rest of the label alone.
// Keep the name in its own span, like show_label_on_form_builder in PHP, so live label edits and other code can read or update it without touching the required and collapsed markers.
label.firstElementChild.innerHTML = data.label || '';

const required = label.querySelector( '.frm_required' );
Expand Down
Loading
Loading