+ Reply to Thread
Results 1 to 3 of 3

Thread: Remove area code on phone number field

  1. #1
    Senior Member
    Join Date
    May 2014
    Posts
    182

    Remove area code on phone number field

    Hi everyone, I just want to have only 10 numbers in the phone field. I don't need area field seperatly.
    I want to remove the "area code" on phone number field. There's many similar topics but there's no proper solution yet.

    Based on this forum topic -https://forum.flynax.com/showthread.php?2699-Phone-no-field-Delete-remove-Area-code

    I think these are the two files need to be edited for removing area code

    /public_html/admin/tpl/blocks/account_field.tpl
    /public_html/templates/general_nova/tpl/blocks/reg_account.tpl

    ---
    I enabled two digits by following #Rudi code

    admin > tpl > blocks > fields > add_edit_form.tpl > find <!-- phone number field -->

    Code:
    Only registered members can view the code.
    ---
    Also i want to add +91 country code by default to the phone number, when i use sms activation plugin.

    I think this is the file shoule be edited for adding default +91 to the phone number field

    /plugins/smsActivation/rlSmsActivation.class.php

    I know, i can add it via data entries by enabling default. But i will use this phone number field for login purpose in future. So, it will be problem to have country code. My site is for only one country, so i don't need to have it on data entries field. Instead i need to have default code on sms activation plugin. Finally, I just want to have only 10 numbers in "number" field without using country code, area.

    Please help me to remove area code & add default country code to phone number field.
    Last edited by Pricky; September 26, 2021 at 01:26 PM.

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello,

    Unfortunately, it will require customization

    or you can use text or number field for the phone number

  3. #3
    Senior Member
    Join Date
    May 2014
    Posts
    182
    I'm having SMS Activation plugin. So i must use Phone number field...

    https://forum.flynax.com/showthread....s-and-brackets

    Removing dashes & brackets will remove area field?

    Anyway, i created ticket and curtis is working on that.

    Thanks for your help.

+ Reply to Thread