RonaliPanigrahy
3 years agoQrew Member
Change Button label
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
------------------------------
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
------------------------------