Discussions

 View Only
  • 1.  Change Button label

    Posted 12-31-2021 06:44
    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
    ------------------------------