GBab
5 years agoQrew Member
Converting Buttons to Rich Text for Mobile
I have several buttons that are currently formula URL buttons and I need to convert them to Formula Rich Text buttons because they do not work on mobile. The code works api_editrecord works the only issue is that it does not save the form before running the api_editrecord. How do I get the rich text button to save before running the api_editrecord.
If([Daily Pilot Log Status]="Submitted-Pending Vendor Approval",
var text URL = URLRoot() & "db/" & [_DBID_DAILY_PILOT_LOGS] & "?a=API_EditRecord&rid="&[Record ID#]
& "&_fid_150=" & URLEncode("Approved")
& "&_fid_152=" & Now()
& "&_fid_151=" & URLEncode(User());
var text rdr = URLRoot() & "db/" & Dbid() & "?a=showpage&pageid=3";
"<a style='width: 150px;border-color:black; font: Arial; text-decoration: none; background:#37a237;color:white;' class='btn btn-sm btn-primary' href='#'" &
"onclick= \"window.location.replace('" & $URL & "&rdr=" & URLEncode($rdr) & "');\"" &
">Approve</a>")
------------------------------
C G
------------------------------
If([Daily Pilot Log Status]="Submitted-Pending Vendor Approval",
var text URL = URLRoot() & "db/" & [_DBID_DAILY_PILOT_LOGS] & "?a=API_EditRecord&rid="&[Record ID#]
& "&_fid_150=" & URLEncode("Approved")
& "&_fid_152=" & Now()
& "&_fid_151=" & URLEncode(User());
var text rdr = URLRoot() & "db/" & Dbid() & "?a=showpage&pageid=3";
"<a style='width: 150px;border-color:black; font: Arial; text-decoration: none; background:#37a237;color:white;' class='btn btn-sm btn-primary' href='#'" &
"onclick= \"window.location.replace('" & $URL & "&rdr=" & URLEncode($rdr) & "');\"" &
">Approve</a>")
------------------------------
C G
------------------------------