+ Reply to Thread
Results 1 to 10 of 10

Thread: Change default value at fields with placeholder

  1. #1

    Change default value at fields with placeholder

    Hi guys...

    Can we change the default value at fields with placeholder?
    So after change default vale should delete when user fill the field
    placeholder.png

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

    Go to templates > your_template > tpl > blocks > field.tpl > {if $field.Type == 'text'}

    replace:
    Code:
    Only registered members can view the code.
    with:
    Code:
    Only registered members can view the code.
    Last edited by Rudi; December 5, 2022 at 01:34 PM. Reason: Fixed

  3. #3
    thanks for reply but not work. also have two lines with code
    Code:
    Only registered members can view the code.
    I try to change one to one and both of them but no results.

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    I've edited my code, now it should work

  5. #5
    Now it works for listing fields...thanks!

    About registration fields what can i do to work default value as placeholder?

  6. #6
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    You need to do the same in file reg_account.tpl

  7. #7
    i try it before i ask you but not work. maybe want something else?

  8. #8
    Code is not work at file reg_account.tpl Can you help me?

  9. #9
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    In addition to the code below

    replace the code after {else}:
    Code:
    Only registered members can view the code.
    with:
    Code:
    Only registered members can view the code.

  10. #10
    It is working... thank you Rudi...

+ Reply to Thread