+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Phone number not correct.

  1. #11
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    2,340
    Hello,

    What exactly do you need to achieve?

  2. #12
    Quote Originally Posted by Rudi View Post
    Hello,

    What exactly do you need to achieve?
    just to make the country code fixed, +123(fixed)-12-1234567

  3. #13
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    2,340
    Do you need to use the dropdown list for area code part?

    It will require a customization

    or follow the instructions below to set default country code value

  4. #14
    Hello Rudi,

    I followed the mentioned instructions but it doesn't work

  5. #15
    Quote Originally Posted by Rudi View Post
    By default, there is no such feature
    it can be implemented as a customization

    but you can set a default value for 'code' section that will be always displayed on profile form:
    for that you should go to templates > your template > tpl > blocks > field.tpl > find a row "{elseif $field.Type == 'phone'}" > in first "input' change a code

    from:
    Code:
    Only registered members can view the code.
    to:
    Code:
    Only registered members can view the code.

    If you need to use multiple codes to allow user to select his code you can do the following:

    go to Common > Data Entries > create an entry with necessary country codes
    then go to Listings > Listing Fields > your phone field > Edit > Link to Data Entries > select your country codes entry
    in 'Field format' uncheck 'Code' option > Save

    And now the 'Area' part will be represented as 'Code' section with dropdown list on profile form
    Now its work great, I change it from reg_account.tpl not from field.tpl

    Thanks alot Rudi

+ Reply to Thread