Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8197929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:50:37+00:00 2026-06-07T05:50:37+00:00

I have this custom form builder, and it calls: basic_input_helper(:text_field, :date, :date_value, options.merge!({:html_options =>

  • 0

I have this custom form builder, and it calls:

basic_input_helper(:text_field, :date, :date_value, options.merge!({:html_options => {:class => "datepicker"}})) if options[:response_class] == "date"

The fourth parameter there are the options (the html options, if I read the code correctly), and I would expect that line to add class="datepicker" to my input field, but instead I get:

<input id="r_3_date_value" name="r[3][date_value]" size="30" type="text" value="2012-07-02" />

No class attribute at all. What am I missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T05:50:38+00:00Added an answer on June 7, 2026 at 5:50 am

    You have to use the key :input_html instead of :html_options

    basic_input_helper(:text_field, :date, :date_value, options.merge!({:input_html => {:class => "datepicker"}})) if options[:response_class] == "date"
    

    The code gets evaluated like this (source on github), you can see the evaluation for input html on line 647

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a custom form builder, and one of the reasons for this custom
I have this form select: <select name=select_date id=select_date> <optgroup label=Select Date> <option value=0 selected=selected>Custom
Check out this jsbin . I have a form with a custom button that
I have created a custom form class and template for my form by following
I have this code, but it doesn't work: $builder->add('name','text',array( 'label' => 'Due Date', ));
I have this form with the parameter year and name : /register?year=&name=test My class
I have a custom form as follows class ticketform( BootstrapForm ): class Meta: layout
I have custom textfield widget and many form in my project. To use this
hii, I am using devexpress xtrascheduler.In this i have created one custom form which
I have this custom JSlider, which will be used in many other forms/windows. But

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.