Skip to main content
Question

Change Button label

  • Dec 31, 2021 11:44 AM UTC
  • 0 replies
  • 20 views

How to change button label? Like if the Lock status is locked change the button label to Unlock and vice versa.Please help

var text lockStatus=If([Lock Status]="LOCKED","UNLOCKED","LOCKED");
var text URLONE=URLRoot()&"/db/"&Dbid()&"?act=API_EditRecord&rid=" &[Record ID#] & "&_fid_9="&$lockStatus;
var text URLTWO=URLRoot() & "db/" & Dbid()&"?a=dr&rid="&[Record ID#];
$URLONE
& "&rdr=" & URLEncode($URLTWO)

------------------------------
Ronali Panigrahy
------------------------------
This topic has been closed for replies.