Forum Discussion
EverettPatterso
6 years agoQrew Captain
You may need a custom save button for that and hide that default save & close.
Formula URL (go to parent and edit)
Formula Rich text (save and redirect button)
------------------------------
Everett Patterson
------------------------------
Formula URL (go to parent and edit)
URLRoot() & "db/" & [_DBID_CLIENT] & "?a=er" & "&rid=" & [Related Project]
Formula Rich text (save and redirect button)
var text myurl = [Go To Parent]; "<a class='Vibrant Success' onclick='DoSave();' href='" & $myurl &"'>Save</a>"
------------------------------
Everett Patterson
------------------------------
AndrewFry
6 years agoQrew Assistant Captain
Everett,
Thanks for the info. Sorry about a delayed response.
If I understand you correctly, I will need to update my custom button.
The two pieces of code you have provided, if I understand them correctly, I can use one or the other, but do not need both, right? It depends on which option I want?
Also, in the first code, the [_DBID_CLIENT] and the [RELATED PROJECT] needed to be switched out with the actual names of the tables, correct?
------------------------------
Andrew
andrew.fry25@gmail.com
------------------------------
Thanks for the info. Sorry about a delayed response.
If I understand you correctly, I will need to update my custom button.
The two pieces of code you have provided, if I understand them correctly, I can use one or the other, but do not need both, right? It depends on which option I want?
Also, in the first code, the [_DBID_CLIENT] and the [RELATED PROJECT] needed to be switched out with the actual names of the tables, correct?
------------------------------
Andrew
andrew.fry25@gmail.com
------------------------------
- EverettPatterso6 years agoQrew Captain
The two pieces of code you have provided, if I understand them correctly, I can use one or the other, but do not need both, right? It depends on which option I want?
You need both, the save button will point to the formula URL
Also, in the first code, the [_DBID_CLIENT] and the [RELATED PROJECT] needed to be switched out with the actual names of the tables, correct?
Yes, use your table names
$("#saveButton, #saveButton + a").hide();
As Jordan mentioned, it uses the IOL technique, injects script as the page loads
------------------------------
Everett Patterson
------------------------------