IF Custom Field Values search value???
Added by David S over 11 years ago
Hi!!
Is there any way to create an if looking for the value of a custom field values???
if <% @ custom_field_values [1] == '...... '%>
condition
<% end%>
Thanks!!
Replies (6)
RE: Add new buttons in issue form? - Added by Jan Niggemann (redmine.org team member) over 11 years ago
You don't ask a question here, what would you like to know?
Is this related to RE: Add action to create button issue?? and How to add new buttons to requests/issues??
RE: IF Custom Field Values search value??? - Added by David S over 11 years ago
There would be some way to tell if it is null or not?
If I want to use to display a value depending on whether the custom_field_value is null or not.
RE: IF Custom Field Values search value??? - Added by David S over 11 years ago
I have the value in the custom_field_value IM55994 [8]
I would like to perform and check if custom_field_value field [8] contains the value "IM"
RE: IF Custom Field Values search value??? - Added by David S over 11 years ago
they could use. "nil?. empty?. blank?. present?" a custom_field_values [1]???
RE: IF Custom Field Values search value??? - Added by Nikolay Ruban about 10 years ago
You'll have to write helper function to iterate through all custom_field_values and check for values.
custom_field_values contains array of CustomField objects.