Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

$Form Api, adding placeholder text to inputs, etc..

I just started taking a crack at making a base theme for vanilla, so far I've been managing to find some reference around the internet, either through the wiki, these forums or just looking through the code but I can't seem to find the Form class to figure out how to add placeholder text to a form.


  • Options
    voltxionvoltxion New
    edited June 2013

    Ok I figured it out for
    $Form->input('field name','type of input',array('placeholder'=>'text')

    $form->TextBox('field Name', array('placeholder'=>'text');

    Where the array is, that is just a array of attributes for the element.

  • Options
    lifeisfoolifeisfoo Zombie plugins finder ✭✭✭

    Can you explain better, with an example, what you want to do?

    Your theme will add only css or do you want do override default views?

    Vanilla version?

    There was an error rendering this rich post.

Sign In or Register to comment.