I need to print different logos on a form dependin...
# advancedpdf
j
I need to print different logos on a form depending on a location field. Right now I am setting the if/then statement using the string for the location name, but I’d rather use the ID of the location (as I’m about to update the name of one location and would rather not change every form manually). The custom field is
custentity_cust_financial_location
, but when I try and use the id instead I get an error on my form that I am comparing incompatible types (one a hash+string and one a SimpleNumber). Is there a way to have the form look at the ID of the field instead of the string? I feel like it’s a simple thing that I’ve simply forgotten.
c
You tack on the .id (or maybe its .internalid) to the list to get the actual ID and you can use that to compare against location. Is the custentity_cust_financial_location returning the ID already but just a string? Try custentity_cust_financial_location.id/internalid == <id of location here>
j
I had tried the .id before, but not .internalid. Unfortunately they both return the same error.