AlexGale
7 years agoQrew Captain
Use API_EditRecord without refreshing page or navigating away
I'm using a formula URL field button to edit records. The way I want to use that field is on an embedded report on another table. I've been making use of the following formula for ease of use:
var text url = API_EditRecord call of some sort
javascript:$.get('" & $url & "',function(){location.reload();});" & "void(0);
This refreshes the page on click, which is nice as it even displays the change immediately.
However, I recently put the embedded report in a different tab on the form. Now, refreshing the page brings the user back to the leftmost tab, which is annoying.
Is there a way to set it up so that users can click the button and have the API call go through while staying on the current page and tab?
Ideally, we would also be able to see the change on the embedded report as if the page was refreshed, but that's not required.
Thank you
var text url = API_EditRecord call of some sort
javascript:$.get('" & $url & "',function(){location.reload();});" & "void(0);
This refreshes the page on click, which is nice as it even displays the change immediately.
However, I recently put the embedded report in a different tab on the form. Now, refreshing the page brings the user back to the leftmost tab, which is annoying.
Is there a way to set it up so that users can click the button and have the API call go through while staying on the current page and tab?
Ideally, we would also be able to see the change on the embedded report as if the page was refreshed, but that's not required.
Thank you