Forum Discussion
ArchiveUser
9 years agoQrew Captain
We had this issue as well and resolved it with an onmouseover.
var text base = URLRoot() & "db/" & Dbid();
var text rdr = "&rdr=" & URLEncode($base & "?a=dr&rid=" & [Record ID#]);
var text url = $base & "?a=API_EditRecord&rid=" & [Record ID#] & "&_fid_<TARGET FID>=";
var text jquery="$(\"#timeTarget\").attr(\"href\",\""&$url&"\"+ now.replace(\",\",\"\") + \""&$rdr&"\")";
"<a id='timeTarget' href ='void' class='Vibrant' onmouseover='"&"var now = new Date().toLocaleString();"&$jquery&" '>BUTTON NAME</a>
var text base = URLRoot() & "db/" & Dbid();
var text rdr = "&rdr=" & URLEncode($base & "?a=dr&rid=" & [Record ID#]);
var text url = $base & "?a=API_EditRecord&rid=" & [Record ID#] & "&_fid_<TARGET FID>=";
var text jquery="$(\"#timeTarget\").attr(\"href\",\""&$url&"\"+ now.replace(\",\",\"\") + \""&$rdr&"\")";
"<a id='timeTarget' href ='void' class='Vibrant' onmouseover='"&"var now = new Date().toLocaleString();"&$jquery&" '>BUTTON NAME</a>
GauravSharma3
8 years agoQrew Commander
Hi Nathan,
I have a field called Flag that captures that button has already clicked. It means if someone has already started their time then, it will give an alert says 'Please end your shift first'.
In above formula, how can I use if condition in which Ist part will capture time and second part will give an alert?
Thanks,
Gaurav
I have a field called Flag that captures that button has already clicked. It means if someone has already started their time then, it will give an alert says 'Please end your shift first'.
In above formula, how can I use if condition in which Ist part will capture time and second part will give an alert?
Thanks,
Gaurav