I'm looking for a part-time remote job.

Hire me

I'm the author of:

Mastering Redmine is a comprehensive guide with tips, tricks and best practices, and an easy-to-learn structure.

Check the book's project or

Buy the book

Social pages of the book:

By buying this book you also donate to Redmine (see this page).

Follow me:

Feature #2227

Altering form elements for custom fields

Added by Andriy Lesyuk over 10 years ago. Updated almost 10 years ago.

In Progress
Target version:
Start date:
21 Sep 2013
Due date:
% Done:


External issue:


Custom field templates let you change the rendering style of values for custom fields and only! And it would be cool to be also able to change the style of form elements for input of custom field values!

Let me show an example:

Saying we have a “Rating” custom field, which should get values from 1 to 5. For such custom field we will probably choose the “Text” type and regular expression ^[1-5]$...

Right now we can use five stars to render values of such custom fields! For this we just define the string/rating template.

But we would also want to use these five stars to let users choose the rating! This would be much better than a text field, which requires digits from 1 to 5!..

Replacing form elements for custom fields can be problematic though... But still it should be possible to “attach” JavaScript to such elements! And using JavaScript we can do what we need!

Associated revisions

Revision 100 (diff)
Added by Andriy Lesyuk over 10 years ago

Added support for edit templates (#2227)


#1 Updated by Andriy Lesyuk over 10 years ago

It’s about custom_field_tag and custom_field_tag_for_bulk_edit in CustomFieldsHelper... Also maybe custom_field_tag_with_label.

#2 Updated by Andriy Lesyuk over 10 years ago

  • Status changed from Open to In Progress
  • Start date changed from 16 Sep 2013 to 21 Sep 2013
  • % Done changed from 0 to 50

This would also need some JavaScript API. For example, I plan to write a JavaScript function named, e.g., hide_original_custom_edit(field_id), which will make the original for element invisible.

#3 Updated by Andriy Lesyuk almost 10 years ago

  • Target version set to 0.2.4

Also available in: Atom PDF

Terms of use | Privacy policy