Why this link works fine:
sc_link (my_field, http://www.scriptcase.com, ,“hint of the link”);
and this one doesn’t works:
$mylink = “http://www.scriptcase.com”;
sc_link (my_field, $mylink, ,“hint of the link”);
Why this link works fine:
sc_link (my_field, http://www.scriptcase.com, ,“hint of the link”);
and this one doesn’t works:
$mylink = “http://www.scriptcase.com”;
sc_link (my_field, $mylink, ,“hint of the link”);
I tried this but none of these 2 are working for me. I have put both codes in onRecord event with no LINK!
I can see is old bug from 2013!! :(:
[URL=“https://forum.scriptcase.net/forum/scriptcase-7/bugs/4621-sc_link-not-working-with-variables”]https://forum.scriptcase.net/forum/scriptcase-7/bugs/4621-sc_link-not-working-with-variables
:eek:
There are two possible solutions:
Create a variable global: [pdf_url] = $pdf_url;
or
Create a field type url. {pdf_url} = $pdf_url;
with most scrtipcase macros it’s often not clear if and how variables can be used as paramaters.
but generally [var_name] will work, while $var_name will fail.