View Tag - Custom Attributes

need to add an icon after each field on my view forms so when clicked it will display a history of changes for that particular field.as a test inserted this…

$this->company_name->ViewCustomAttributes = ‘’;is this not correct syntax for a ViewCustomAttributes text??after the label the icon appears along with a “>” as well, the “company name” text then appears in bold and a times new roman font. (if i append to viewValue the code displays the icon correctly.)

This is the completed tag to allow clicking, but as noted, displays in bold and character “>” is displayed after the history iconView Tag Custom Attribute:
" <a href="#" onclick="ew.alert(‘TODO: Get the field audit history’); "> <i class="fas fa-history">"thanks,
JH

ViewCustomAttributes is added as view tag attributes. If you want to add extra content to your view value, try in Row_Rendered server event:$this->Field->ViewValue .= “your content”; // Append your content

yes, that’s what I put it in, but I also use the viewvalue text to append to the page title - ex: $(‘.modal-title’).append(‘<?php echo " | ".$infoDisplay ?>’)now what happens is that ViewValue Text is Displayed as well as the html content of the additional textSo it looks likeView | PHPMaker <a href="#" onclick="ew.alert(‘TODO: Get the field audit history’); "> <i class="fas fa-history">" fa-history">" – since i’ve appened it to every field via dbfields.php any viewvalue now has the additional text.
i’ll have to probably use substr and display the text before the “<a” tags