Bharat
unread,Feb 26, 2011, 11:06:01 AM2/26/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SimpleForm
This may not be a limitation of Simple Form but rather Rails or HTML
forms or just lack of my knowledge.
I am trying to limit the number of integer characters that can be
entered for an integer valued field as shown below:
<%= form.input :instructor_access, :hint => "weeks", :input_html =>
{:maxlength => 2} %>
<%= form.input :course_access, :hint => "weeks", :size => 2 %>
<%= form.input :refund_period, :hint => "hours", :size => 3 %>
<%= form.input :refund_percent, :hint => "0 to 100", :size => 3 %>
I have tried various combinations but none seem to work. This is not
a problem for text/string type fields. Can this be done?
Thanks.
Bharat