You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding "customCode" to the definition in a Detailview to a field in file metadata/detailviewdefs.php like: 'customCode' => '{if $fields.name.value=="Boss"}<b>{$fields.name.value}</b>{else}{$fields.name.value}{/if}'
It will display the name in Bold when it is the "Boss".
If you put the same code in metadata/listviewdefs.php ListView will Display the Code but does not evaluate the Smarty Code.
Expected Behavior
customCode should work for all (or most) metadata definitions the same.
Actual Behavior
Smarty Code does not get evaluated.
Steps to Reproduce
Add "customCode" definition to a field in metadata/listviewdefs.php
Quick-Repair (or delete cache/themes folder)
Look at list view in GUI
Context
Your Environment
SuiteCRM Version used: 7.14.2
Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Chrome
Environment name and version (e.g. MySQL, PHP 7): PHP 8.2
Operating System and version (e.g Ubuntu 16.04): Ubuntu 22.04
The text was updated successfully, but these errors were encountered:
When adding "customCode" to the definition in a Detailview to a field in file metadata/detailviewdefs.php like:
'customCode' => '{if $fields.name.value=="Boss"}<b>{$fields.name.value}</b>{else}{$fields.name.value}{/if}'
It will display the name in Bold when it is the "Boss".
If you put the same code in metadata/listviewdefs.php ListView will Display the Code but does not evaluate the Smarty Code.
Expected Behavior
customCode should work for all (or most) metadata definitions the same.
Actual Behavior
Smarty Code does not get evaluated.
Steps to Reproduce
Context
Your Environment
The text was updated successfully, but these errors were encountered: