Project

General

Profile

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: 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.

    (1-6/6)