Forum Discussion
QuickBaseCoachD
7 years agoQrew Captain
The format for a Rich text field is
var text Words = "My words including any HTML";
var text URL = a formula for the URL with a IF;
var text Words = "My words including any HTML";
var text URL = a formula for the URL with a IF;
"<a href=" & $URL & ">" & $Words & "/>"
EricEvansVargas
7 years agoQrew Cadet
Here's what I've done so far ... trying to add on two of the buttons first:
If([Leave Type]="Transitional Duty" and [Leave Report Date]=Today(),
var text Words = "OT on Trans Duty";
var text url=
"<a href=" & $URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &
"&rid=" & [Record ID#] &
"&apptoken=####"&
"&_fid_70=True" &
"&_fid_67=OT on Transitional Duty" &
"&_fid_58="& URLEncode(User()); & ">" & $Words & "/>"
[Leave Description]="Continuous" and [Leave Report Date]=Today(),
var text Words = "RTW"
var text url=
"<a href=" &$URLRoot() & "db/" & Dbid() & "?a=API_EditRecord" &
"&rid=" & [Record ID#] &
"&apptoken=####"&
"&_fid_63=True" &
"&_fid_67=Return to Work" &
"&_fid_58="& URLEncode(User());
"javascript:" & "$.get('" & $url & "', function(){" & "location.reload();" &
"});" & "void(0);"
,"")