Forum Discussion
_anomDiebolt_
Qrew Elite
Put a Rich Text Formula field in the middle of your form with this definition:
"<div style='Vibrant Success' onclick=$('#footerSaveAndKeepWorkingMenuOption').click();>Save and Keep Working</div>"
When it is clicked it will trigger the clicking of the native Save and Keep Working button (even though it is not visible at the moment). FWIW, this type of strategy of embedding JavaScript into a form which emulates a user clicking on a native features is safer than other methods of more directly invading the native markup and code.
"<div style='Vibrant Success' onclick=$('#footerSaveAndKeepWorkingMenuOption').click();>Save and Keep Working</div>"
When it is clicked it will trigger the clicking of the native Save and Keep Working button (even though it is not visible at the moment). FWIW, this type of strategy of embedding JavaScript into a form which emulates a user clicking on a native features is safer than other methods of more directly invading the native markup and code.
LeoSanchez
5 years agoQrew Trainee
So is there a way for this to do the following:
I need a button (currently an URL Formula Field) to check a box and make another field blank while prompting a dialog box that will confirm we actually want to do this. It is working fine but if I make any changes to any other field prior to clicking this button I get an error. So maybe if the button can "save and keep working"and then check the box and then redirect, that might fix the issue?
Formula being use right now below
------------------------------
Leo Leo
------------------------------
I need a button (currently an URL Formula Field) to check a box and make another field blank while prompting a dialog box that will confirm we actually want to do this. It is working fine but if I make any changes to any other field prior to clicking this button I get an error. So maybe if the button can "save and keep working"and then check the box and then redirect, that might fix the issue?
Formula being use right now below
"javascript:if(confirm ('Are you sure you want to release this order?')){location.assign('/db/" & Dbid() &
"?act=API_EditRecord&apptoken=xxxxxxxxxx&rid=" & [Record ID#] & "&_fid_234=1&_fid_605=&rdr=" &
URLEncode(URLEncode(URLRoot() & "db/" & Dbid() & "?a=td") & "") & "')}"
"?act=API_EditRecord&apptoken=xxxxxxxxxx&rid=" & [Record ID#] & "&_fid_234=1&_fid_605=&rdr=" &
URLEncode(URLEncode(URLRoot() & "db/" & Dbid() & "?a=td") & "") & "')}"
------------------------------
Leo Leo
------------------------------