Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Only Show Specific Countries In Caldera Forms Phone Field

<?php
/**
 * Show only specific countries' flag in Caldera Forms phone fields
 */
add_filter( 'caldera_forms_phone_js_options', function($options ){
	$options[ 'onlyCountries' ] = array( 'cn', 'tw' );
	return $options;
});
Source by gist.githubusercontent.com #
 
PREVIOUS NEXT
Tagged: #Only #Show #Specific #Countries #In #Caldera #Forms #Phone #Field
ADD COMMENT
Topic
Name
6+2 =