Trying to add a maxlength attribute to an input box

View: New views
1 Messages — Rating Filter:   Alert me  

Trying to add a maxlength attribute to an input box

by vishr () :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I am new to Chiba and all I am trying to do is add attributes like "size" and "maxlength" to an input form field. I do not see an easy way to do that. I have tried adding the attributes like so
<xf:input ref="input[1]/value" incremental="true" maxlength="7" style="color:green;">
but all this does is add the attributes to the outer div and not to the <input> form field. Would appreciate any help on this and some pointers on how I could add html form attributes in general.

Thanks in advance,

Vish