Boris,

What is important is the following;

In the past you set the hyperlink ID and when this was not zero it generated a DIV element like:

HTML Code:
<div style="position:absolute; top:112.55pt; left:102.85pt; width:50.65pt; height:17.95pt; clip:rect(auto, 50.65pt, 17.95pt, auto); z-index:7;  font-family:'Segoe UI'; font-size:12.00pt; font-weight:400; color:#000000; word-wrap:break-word; text-align:left; background-color: rgba(255,255,255,0); padding-left:2pt; padding-right:2pt; box-sizing: border-box;" class="DR_Click" data-drtype="1" tabindex="0">AS</div>
with the value of the object (db column, function etc) and inside the DIV element the following attributes.
HTML Code:
class="DR_Click" data-drtype="1" tabindex="0"
So if I just want to replace the "1" with a DB column value I can write
Code:
return 'class="DR_Click" data-drtype="' + {SalesPerson.Name} + '" tabindex="0"'
The HTML result will be:
HTML Code:
<div style="position:absolute; top:186.05pt; left:102.85pt; width:50.65pt; height:17.95pt; clip:rect(auto, 50.65pt, 17.95pt, auto); z-index:11;  font-family:'Segoe UI'; font-size:12.00pt; font-weight:400; color:#000000; word-wrap:break-word; text-align:left; background-color: rgba(255,255,255,0); padding-left:2pt; padding-right:2pt; box-sizing: border-box;"><span class="DR_Click" data-drtype="Barney Roberts" tabindex="0">BR</span></div>
If you don't want the "BR" you need to use a function which returns nothing or builds up the HTML code correctly as I did with the button.
Working with variables works too
Code:
dim sRetval
let sRetval='class="DR_Click" data-drtype="'
let sRetval=sRetval+lcase({SalesPerson.Name})
let sRetval=sRetval+'" tabindex="0"'
return sRetval