Change The Default Country Code On The Caldera Forms

Caldera Forms
Add following code in your functions.php file to set default Country for Phone (Better)

add_filter( ‘caldera_forms_phone_js_options’, function( $options){
//Use ISO_3166-1_alpha-2 formatted country code
$options[ ‘initialCountry’ ] = ‘GB’;
return $options;

Change GB to your required country.

Leave a Comments

Your email address will not be published. Required fields are marked *