Skip to content

Commit 6239a9e

Browse files
authored
gpapf-enable-country-search.js: Added snippet to enable country search with GP Advanced Phone Field.
1 parent e5ae702 commit 6239a9e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* Gravity Perks // Advanced Phone Field // Enable Country Search
3+
* https://gravitywiz.com/documentation/gravity-forms-advanced-phone-field/
4+
*
5+
* By default, the county search feature is disabled. Use this snippet to enable it.
6+
*
7+
* Instructions:
8+
*
9+
* 1. Install this snippet with our free Custom JavaScript plugin.
10+
* https://gravitywiz.com/gravity-forms-code-chest/
11+
*/
12+
gform.addFilter( 'gpapf_intltelinput_options', function( options, formId, fieldId, instance ) {
13+
options.countrySearch = true;
14+
return options;
15+
});

0 commit comments

Comments
 (0)