File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * Gravity Perks // Advanced Select // Clear Button
3+ * https://gravitywiz.com/documentation/gravity-forms-advanced-select/
4+ *
5+ * Adds a Clearn button to selection options in Dropdown fields. By default,
6+ * the remove button is only added to Multi-Select fields.
7+ *
8+ * The Clear Button is a built in plugin of Tom Select.
9+ * @reference https://tom-select.js.org/plugins/clear-button/
10+ *
11+ * Instructions:
12+ *
13+ * 1. Install this snippet with our free Custom JavaScript plugin.
14+ * https://gravitywiz.com/gravity-forms-code-chest/
15+ */
16+ window . gform . addFilter (
17+ 'gpadvs_settings' ,
18+ function ( settings , gpadvsInstance , selectNamespace ) {
19+ settings . plugins . clear_button = {
20+ title : 'Clear options' ,
21+ } ;
22+
23+ return settings ;
24+ }
25+ ) ;
You can’t perform that action at this time.
0 commit comments