Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 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
ec38937
Respect reduced motion in the form outline
Crabcyborg Nov 19, 2026
8e333d4
Merge master into form_outline
Crabcyborg Nov 19, 2026
d82f22e
Merge branch 'master' into form_outline
Crabcyborg Nov 23, 2026
06cf1ab
fix(builder): use Title Case for the outline search placeholder
Crabcyborg Nov 23, 2026
95db25b
fix(builder): keep unlabeled fields in outline
Crabcyborg Nov 25, 2026
1a5dd2c
fix(builder): wait for fields to load before showing the outline
Crabcyborg Nov 25, 2026
fa66126
Merge remote-tracking branch 'origin/master' into HEAD
Crabcyborg Nov 27, 2026
9415515
refactor(builder): move the outline's grouping and search into a model
Crabcyborg Nov 27, 2026
fc8b42a
fix(builder): show the outline while lazy-loaded fields arrive
Crabcyborg Nov 27, 2026
e0cec52
fix(builder): highlight the last pages in the outline
Crabcyborg Nov 27, 2026
591aeaa
fix(builder): drop empty sections from an outline page title match
Crabcyborg Nov 27, 2026
17c2111
fix(builder): match outline field IDs exactly and search field keys
Crabcyborg Nov 27, 2026
9e6d845
fix(builder): list every outline search result
Crabcyborg Nov 27, 2026
d3dcc4c
fix(builder): ignore accents in outline search
Crabcyborg Nov 27, 2026
f6b4ed4
fix(builder): keep emoji in outline labels
Crabcyborg Nov 27, 2026
7a5afe7
fix(builder): keep the Outline tab visible in a narrow sidebar
Crabcyborg Nov 27, 2026
12a5f08
fix(builder): keep the welcome tour tip off the Outline tab
Crabcyborg Nov 27, 2026
fee2b91
Merge branch 'master' into form_outline
Crabcyborg Nov 27, 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
4 changes: 3 additions & 1 deletion classes/controllers/FrmWelcomeTourController.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,11 @@ private static function get_spotlight_data() {
);
break;
case 'add-fields':
// Open below the tab. Beside it, the tip covers the Field Options and Outline tabs.
$spotlight_data = array(
'target' => '.frm-settings-panel .frm-tabs-navs li.frm-active',
'left-position' => '140px',
'left-position' => 'middle',
'placement' => 'bottom',
);
break;
case 'style-form':
Expand Down
32 changes: 32 additions & 0 deletions classes/views/frm-forms/_outline_panel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?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>
<div class="frm-builder-outline-loading frm_hidden">
<span class="frm-wait frm_visible_spinner"></span>
<span><?php esc_html_e( 'Loading fields…', 'formidable' ); ?></span>
</div>
<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
2 changes: 1 addition & 1 deletion css/frm_admin.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/formidable_admin.js

Large diffs are not rendered by default.

4 changes: 4 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 @@ -2944,6 +2945,8 @@ window.frmAdminBuildJS = function() {
const field = document.getElementById( `frm_field_id_${ fieldId }` );
if ( field?.classList.contains( 'frm_field_loading' ) ) {
placeholderSpinnerObserver?.unobserve( field );
// Tells the outline this placeholder is done, so it stops waiting for it.
field.classList.add( 'frm_field_load_failed' );
field.textContent = __( 'Unable to load field.', 'formidable' );
}
} );
Expand Down Expand Up @@ -13579,6 +13582,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 @@ -229,7 +229,7 @@ export 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