LizChartrand
5 years agoQrew Cadet
Rich Text Button Help - Completing more than one task
Hello,
I'm trying to create a button that, will check different boxes when clicked in a sequence so we can monitor task completion on a record.
For instance, when clicked once the button checks a checkbox, stamps a field with the user who clicked the button, then refreshes the page. When clicked a 2nd time the button checks a different check box, stamps a field with the user who clicked the button, then refreshes the page.
I haven't tried to build a multitasking button or creating one without javascript to refresh the page, yet.
I came across a few suggestions that I thought I could patchwork together (added below) - are there any suggestions about how to make this button work to sequentially checkboxes?
Thank you!
//step 1 initial QB update check box checked
var text URL= "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() &"?a=dr&rid="&[Record ID#]);
var text URLONE = URLRoot() & "db/" & Dbid()
& "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_82=" & URLEncode(UserToName(User()))
& "&_fid_77=true"
& "&apptoken=...";
//step 2 CRT complete check box checked
var text URLTWO=
URLRoot() & "db/" & Dbid()
& "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_=82" & URLEncode(UserToName(User()))
& "&_fid_80=true"
& "&apptoken=...";
If(
[QB Update Complete?]=true,
"<a class='Vibrant Success' style='border:1px solid #6BBD57; background-color:#6BBD57'>Lease Execution Complete?</a>",
[CRT completed?]=true,
"<a class='Vibrant Success' style='border:1px solid #6BBD57; background-color:#6BBD57'>Completed</a>","<a class='Vibrant Success' style='border:1px solid #6BBD57; background-color:#6BBD57'>Units Updated?</a>")
------------------------------
Liz Chartrand
------------------------------
I'm trying to create a button that, will check different boxes when clicked in a sequence so we can monitor task completion on a record.
For instance, when clicked once the button checks a checkbox, stamps a field with the user who clicked the button, then refreshes the page. When clicked a 2nd time the button checks a different check box, stamps a field with the user who clicked the button, then refreshes the page.
I haven't tried to build a multitasking button or creating one without javascript to refresh the page, yet.
I came across a few suggestions that I thought I could patchwork together (added below) - are there any suggestions about how to make this button work to sequentially checkboxes?
Thank you!
//step 1 initial QB update check box checked
var text URL= "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() &"?a=dr&rid="&[Record ID#]);
var text URLONE = URLRoot() & "db/" & Dbid()
& "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_82=" & URLEncode(UserToName(User()))
& "&_fid_77=true"
& "&apptoken=...";
//step 2 CRT complete check box checked
var text URLTWO=
URLRoot() & "db/" & Dbid()
& "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_=82" & URLEncode(UserToName(User()))
& "&_fid_80=true"
& "&apptoken=...";
If(
[QB Update Complete?]=true,
"<a class='Vibrant Success' style='border:1px solid #6BBD57; background-color:#6BBD57'>Lease Execution Complete?</a>",
[CRT completed?]=true,
"<a class='Vibrant Success' style='border:1px solid #6BBD57; background-color:#6BBD57'>Completed</a>","<a class='Vibrant Success' style='border:1px solid #6BBD57; background-color:#6BBD57'>Units Updated?</a>")
------------------------------
Liz Chartrand
------------------------------