Forum Discussion

RonaliPanigrahy's avatar
Qrew Member
3 years ago

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#];
& "&rdr=" & URLEncode($URLTWO)

Ronali Panigrahy
No RepliesBe the first to reply