File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 44 *
55 * Adds a Remove button to selection options in Dropdown fields. By default,
66 * the remove button is only added to Multi-Select fields.
7+ *
8+ * The Remove Button is a built in plugin of Tom Select.
9+ * @reference https://tom-select.js.org/plugins/remove-button/
710 *
811 * Instructions:
912 *
1013 * 1. Install this snippet with our free Custom JavaScript plugin.
1114 * https://gravitywiz.com/gravity-forms-code-chest/
1215 */
16+
17+ function getNestedKey ( obj , path ) {
18+ for ( piece of path ) {
19+ if ( ! obj . hasOwnProperty ( piece ) ) {
20+ return undefined ;
21+ }
22+
23+ obj = obj [ piece ] ;
24+ }
25+
26+ return obj ;
27+ }
28+
1329window . gform . addFilter (
1430 'gpadvs_settings' ,
1531 function ( settings , gpadvsInstance , selectNamespace ) {
You can’t perform that action at this time.
0 commit comments