Problem with Date field type

  • framos
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 3 weeks ago - 4 years 3 weeks ago #133149 by framos
Problem with Date field type was created by framos
Hi,

I have observed that when I use a new date type field, the generated code has an error.

I have created a new field and the result is:
Code:
<input type="text" id="test_date" name="test_date" value="" class="class=" jd_width_100_percentage="" "="" placeholder="Test date" data-alt-value="0000-00-00 00:00:00" autocomplete="off">

I have updated to the latest version and tried with a new installation, but I still have the same problem.

Some help?

Apparently, the field created collects the information and it works ok, the problem is in the generated code and class label.

Regards.
Attachments:
Last edit: 4 years 3 weeks ago by framos.

Please Log in or Create an account to join the conversation.

More
4 years 3 weeks ago #133150 by Mr. Dam
Replied by Mr. Dam on topic Problem with Date field type
Hi,
To solve the issue, please following below steps
1. Open file: root -> administrator -> components -> com_jdonation -> libraries -> osf -> form -> field -> date.php
2. Find:
Code:
$temp = array('class' => 'class="jd_width_100_percentage '.$campaignClass, 'placeholder'=> $field->title);

and replace by
Code:
$temp = array('class' => 'jd_width_100_percentage '.$campaignClass.'', 'placeholder'=> $field->title);

Thanks
Dam

Please Log in or Create an account to join the conversation.

  • framos
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 3 weeks ago - 4 years 3 weeks ago #133153 by framos
Replied by framos on topic Problem with Date field type
Hi Mr Dam,

Thanks for the info. i have tested some options and the problem only occurs with simple donation layout, no with default layout.

Regads.
Last edit: 4 years 3 weeks ago by framos.

Please Log in or Create an account to join the conversation.

More
4 years 3 weeks ago #133161 by Mr. Dam
Replied by Mr. Dam on topic Problem with Date field type
Yes, the solution i sent you yesterday is for Simple layout
Thanks
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamDũng Nguyễn Việt