Forum Discussion

olivermah's avatar
olivermah
Qrew Assistant Captain
7 years ago

URL button to populate a field with the current user

Hi There,

I currently have a url button that populates a certain field with the user that last modified the record.  

I need some help to change it from the user the last modified the record to the current user that pushes the button.

is there anyway to modify the below for the above requirement?


var text URL = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & [Record ID#]

& "&_fid_30=" & URLEncode([Last Modified By]);


"javascript:" &
"$.get('" & 
$URL & 
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
  • olivermah's avatar
    olivermah
    Qrew Assistant Captain
    haha - yes definitely undesrtand that part - thanks :)

  • Hi everyone - this thread matches what we need but can we still use JavaScript in 2024?  What is the best current option?