+ Reply to Thread
Results 1 to 3 of 3

Thread: How to get placeholder for numeric fields?

  1. #1

    How to get placeholder for numeric fields?

    Hello,

    How can I get a placeholder value for the numeric field? I am making the change in the field.tpl to try and show the name value as the placeholder text for numeric fields. I have tried: {$field.Key} and that shows the key as the placeholder, but how about the name? I have tried $field.Name} but that doesn't show any placeholder text. How can I do this? This is for the vehicles listing type, and inside (or under) the Vehicle Specifics field group where I am trying to get this to work.

    End Result: The name entered in the name field (admin panel -> listing fields) should be displayed as the placeholder value in the numeric text fields.
    Last edited by Brian Jester; March 1, 2021 at 05:03 PM.
    Thank you - Your Welcome
    Brian

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Use {$lang[$field.pName]}

  3. #3
    Hi Rudi,

    That exactly what I was looking for!

    Thank you!

    Quote Originally Posted by Rudi View Post
    Use {$lang[$field.pName]}
    Thank you - Your Welcome
    Brian

+ Reply to Thread