Forum Discussion
AdamKeever1
6 years agoQrew Commander
Check out the magic buttons app in the exchange:
https://magna-5325.quickbase.com/db/main?a=AppDetail&ID=2660&app_name=Magic%20Buttons%20-%20Having%20fun%20with%20formula%20...
There are many examples of using the API to edit records. Here is an example of editing a record after a prior action from the Magic Buttons app; Check/Uncheck a checkbox then edit record:
If([Checkbox] = false,
"<a class='Vibrant Primary' style=\"width:310px; text-align: center;\" href='" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] & "&apptoken=d9eascudwjxs2sesxkjccwgtq9r&_fid_101=1&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=er&rid=" & [Record ID#]) & "'>5B. Check a checkbox then edit record</a>",
"<a class='Vibrant Primary' style=\"width:310px; text-align: center;\" href='" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] & "&apptoken=d9eascudwjxs2sesxkjccwgtq9r&_fid_101=0&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=er&rid=" & [Record ID#]) & "'>5B. Uncheck a checkbox then edit record</a>"
)
// Press the button and this changes the "Checkbox" to checked and returns to edit record mode
// Press it again and this changes the "Checkbox" to unchecked and returns to edit record mode
// In this variation you can actually change the button label for each and it will reflect in the button
https://magna-5325.quickbase.com/db/main?a=AppDetail&ID=2660&app_name=Magic%20Buttons%20-%20Having%20fun%20with%20formula%20...
There are many examples of using the API to edit records. Here is an example of editing a record after a prior action from the Magic Buttons app; Check/Uncheck a checkbox then edit record:
If([Checkbox] = false,
"<a class='Vibrant Primary' style=\"width:310px; text-align: center;\" href='" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] & "&apptoken=d9eascudwjxs2sesxkjccwgtq9r&_fid_101=1&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=er&rid=" & [Record ID#]) & "'>5B. Check a checkbox then edit record</a>",
"<a class='Vibrant Primary' style=\"width:310px; text-align: center;\" href='" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] & "&apptoken=d9eascudwjxs2sesxkjccwgtq9r&_fid_101=0&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=er&rid=" & [Record ID#]) & "'>5B. Uncheck a checkbox then edit record</a>"
)
// Press the button and this changes the "Checkbox" to checked and returns to edit record mode
// Press it again and this changes the "Checkbox" to unchecked and returns to edit record mode
// In this variation you can actually change the button label for each and it will reflect in the button