+ Reply to Thread
Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28

Thread: How to show mobile number with XXX

  1. #21
    [QUOTE=Rudi;36617]Ok, the only thing you need to is to change the line:

    PHP Code:
    Only registered members can view the code
    to:
    PHP Code:
    Only registered members can view the code
    /QUOTE]

    Hi Rudi,

    After change this code. I got from +91 (866) 745-3872 this to +91 (866) 7453-872

    But I want to move This ( ) on 1st 2 Numbers Like this (+91) 866 745-3872

    z2.JPG

  2. #22
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Please, see the rest part of the solution below

  3. #23
    Hello!

    I'm trying to add some text below the phone. After clicking on "Show number" how to replace it with some text?

    2022-11-23_162841.png

    2022-11-23_163408.png

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

    Go to templates > your_template > js > form.js > this.showHiddenPhone

    replace:
    Code:
    Only registered members can view the code.
    with:
    Code:
    Only registered members can view the code.

  5. #25
    Hello Rudi, hanks for your response!
    But it didn't work properly.

    It works if I add as you say: $showPhoneLink.text('YOUR_TEXT'); it adds my text,
    but I need to add a multilang text, so if I add $showPhoneLink.text(lang.my_text); it adds nothing. I added a picture to show you what happens in this case, look at please.

    2022-11-24_210737.png

  6. #26
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    You need to initialize this lang phrase first somewhere in tpl file

    For example, in footerScript.tpl

    after:

    lang.login = "{phrase key='login'}";

    add your case:

    lang.phrase_key = "{phrase key='phrase_key'}";

    and then you can use it in form.js

  7. #27
    Ok Rudi, I'll try. Thank you.

  8. #28
    Thank you so much Rudi, it worked!

+ Reply to Thread