StacySeapy
5 years agoQrew Member
Single Button to Save & Keep Working Before Editing a Record (ex. change a checkbox)?
I am looking to combine two buttons I've found solutions to via this community (thank you!!), but I am unsure how/if it's possible.
Button 1: "Save & Keep Working" Rich Text Field
Button 2: "Change a checkbox" URL Formula Field
"javascript:" &
Objective:
Clicking a single button that saves any changes to a record first, then changes a checkbox on the same record that triggers a pipeline, automation and/or webhook to run.
So from a flow standpoint, I want a user to be able to click a button to manually trigger an action, as sometimes the automation/pipeline is not necessary every time certain fields change (ie changing a date does not mean that the document needs to be created right then), but it is necessary that any changes to the record are saved before triggering that action (ie. changing the textbox)...
Thank you so much for any help!
------------------------------
Stacy Seapy
------------------------------
Button 1: "Save & Keep Working" Rich Text Field
"<div class='Vibrant Success' onclick=$('#footerSaveAndKeepWorkingMenuOption').click();>Generate Document</div>"
Button 2: "Change a checkbox" URL Formula Field
var text Token ="TOKEN";
var bool NewValue = not [checkboxfield];
var text URL = URLRoot() & "db/" & Dbid() & "?a=API_EditRecord&apptoken="& $Token &"&rid="& [Record ID# #] & "&_fid_checkboxfield=" & URLEncode($NewValue) & "&disprec=1";
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});" & "void(0);"
Objective:
Clicking a single button that saves any changes to a record first, then changes a checkbox on the same record that triggers a pipeline, automation and/or webhook to run.
So from a flow standpoint, I want a user to be able to click a button to manually trigger an action, as sometimes the automation/pipeline is not necessary every time certain fields change (ie changing a date does not mean that the document needs to be created right then), but it is necessary that any changes to the record are saved before triggering that action (ie. changing the textbox)...
Thank you so much for any help!
------------------------------
Stacy Seapy
------------------------------