Large Image Template

Learn about Large Image Template attribute.

Displays an image depending on a field value in a separate area beside Details and MiniDetails controls. To display images in lists, use the Render Hook field attribute. For further details, see Render Hook.

Syntax:

Specify the name of an image registered in CRM.Designer plus {VALUE} as placeholder for the field's value. For further details, see Images

<image_name>_{VALUE}

Use JavaScript expressions to get and transform the value.

Large Image Template (and Small Image Template) support character, catalog and boolean values.

If you define Large Image Template for a hyperlink field defined in the data model or via field attribute, users can click on the icon to open the linked page (e.g. to access a company's social media pages). For further details, see Hyperlink.

Examples:

Small Image Template = CAT_CONTACT_BTB_{VALUE}

Displays the images associated with the different values of the Activity Type catalog. The images are registered as CAT_CONTACT_BTB_0 to CAT_CONTACT_BTB_7 for the first eight catalog entries.

Large Image Template = CAT_AQ_{VALUE}

Displays the image for a company's current Lead Status. The images are registered as CAT_AQ_0 to CAT_AQ_6 for the first seven catalog entries.

Large Image Template = CAT_ABC_{javascript:($['VALUE'] || '').toUpperCase();}

Displays the image for a company's current ABC rating. The images are registered as CAT_ABC_A, CAT_ABC_B and CAT_ABC_C. For letters other than A, B or C no image is displayed.

Large Image Template = private_{javascript:u8.services.typeConverter.toBoolean($['VALUE'])}_value

Displays different images depending on the state of the Boolean field Private in MA. You need to create and register the images (private_true_value and private_false_value) for this example, as they are not part of UPDATE_DEFAULT.

Large Image Template = SocialNetwork_Facebook{javascript:$['VALUE']?"":"_doNothing";}

Displays the Facebook icon (registered as SocialNetwork_Facebook), if the Facebook field contains an address. If the Facebook field is empty no icon is displayed, unless you registered an image called SocialNetwork_Facebook_doNothing indicating that no address is available.