I updated the phone format filter so it will not mess with phone numbers
that start with + sign. I commented out the phone number format js call
so we can enter in international phone numbers.
*/
function glmMembersFilterPhone( $config, $phone )
{
+ // If the number has + in front then return $phone
+ if ( preg_match( '/^[+]/', $phone, $matches) ) {
+ return $phone;
+ }
$phone_format = ( isset( $config['settings']['phone_format'] ) && $config['settings']['phone_format'] )
? $config['settings']['phone_format']
: 'us';
});
// Set masking for phone number fields - see http://digitalbush.com/projects/masked-input-plugin/
- $.mask.definitions['e'] = "[A-Za-z0-9: ]";
- $(".glm-phone-input").mask("999{$settings.phone_infix}999{$settings.phone_infix}9999? eeeeeeeeeee");
+ //$.mask.definitions['e'] = "[A-Za-z0-9: ]";
+ //$(".glm-phone-input").mask("999{$settings.phone_infix}999{$settings.phone_infix}9999? eeeeeeeeeee");
$('#glm-live-cam-type').on("change", function() {
checkLiveCamType();
<div class="glm-row">
<h4 {if $memberInfo.fieldRequired.phone}class="glm-required"{/if}>Phone #:</h4>
<div {if $memberInfo.fieldFail.phone}class="glm-form-bad-input" data-tabid="glm-member-info-contact"{/if}>
- <input type="text" name="phone" value="{$memberInfo.fieldData.phone}" class="glm-form-text-input-short glm-phone-input" >
+ <input type="text" name="phone" value="{$memberInfo.fieldData.phone}" class="glm-form-text-input-short glm-phone-input" placeholder="ex: 800.123.4567 [ext 123]">
{if $memberInfo.fieldFail.phone}<p>{$memberInfo.fieldFail.phone}</p>{/if}
</div>
</div>
</div>
</div>
</div>
- </div>
\ No newline at end of file
+ </div>