Anyone please
Anyone please
eg: {input name='identity'} converts to <input type="text" name="......
i want to specify id, classes, placeholder etc but not able to do so because of this string conversion.
pls state a method to do so.....
input field are encode, like username field is {input name='identity'}
i want to add some css classes and a placeholder to very possible field be it of sign-in form or join form
what i did is added classes and placeholder to this string {input name='identity' class="myclass" placeholder="Enter your username"}
and it produced a 500 error several times
after some tries it displayed the sign-in form but the css class and placeholder i added was missing...
i want to modify the fields with a field placeholder and some additional classes, so kindly pls let me know the doing this
important: don't stick to sign-in form fields, i want a way which can help me in customising overall fields (join,sign-in,verify,forgot forms) if i have to change multiple pages to do so i'm ready
I think Daisy doesn't really get the picture of what you are asking for. You can try this code {input name=$question.name placeholder=$question.name} in the join page.
@Daisy
The placeholder property was suppose to place the input label (question name) inside the input boxes.
The code I provided above works with password fields but the rest of the form fields are filled with some funny codes. It will be great for someone to improve on it.
Daisy is right
right way to add placeholder is using addAttribute()
if you want placeholder then just do something like this $foo->addAttribute('placeholder', 'foo');