EOMDevelepors
5 years agoQrew Captain
Button in mobile
I have a button that adds a record in a child table and reloads the page. Since it includes javascript syntax, it would not work in mobile site. Can someone help me re-write this in a way it should work in mobile or it's not possible?
Here is the code:
If([Amount of open clock-ins]>0,"javascript:alert('You are already clocked in!')",
var text url=
URLRoot() & "db/" & [_DBID_TIME_IN_OUT] & "?a=API_AddRecord&apptoken=[mytokan]&_fid_10=" & URLEncode ([Record ID#])&"&_fid_8=In";
"javascript:" &
"$.get('" &
$url &
"',function(){" &
"location.reload();"&
"});" &
"void(0);")
Thanks
------------------------------
EOM Develepors
------------------------------
Here is the code:
If([Amount of open clock-ins]>0,"javascript:alert('You are already clocked in!')",
var text url=
URLRoot() & "db/" & [_DBID_TIME_IN_OUT] & "?a=API_AddRecord&apptoken=[mytokan]&_fid_10=" & URLEncode ([Record ID#])&"&_fid_8=In";
"javascript:" &
"$.get('" &
$url &
"',function(){" &
"location.reload();"&
"});" &
"void(0);")
Thanks
------------------------------
EOM Develepors
------------------------------