Forum Discussion
ArchiveUser
10 years agoQrew Captain
Kunpeng, I'm not aware of a DoSave() function, but have used a DoSaveAdd() function myself before. In my experience, I used to be able to run a command like "<a href='javascript:void(DoSaveAdd());top.document.location.href=\"" & URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Task ID] & "\";'>Save</a>" before and it would save my record, then redirect to the record I was editing. Unfortunately, the weekend QuickBase updated to a new UI this stopped working as it used to and I haven't been successful in another option.
The problem as I've experienced it is the DoSaveAdd() action will work by itself, and the page redirect action also works by itself. The moment I would add both into the same button however only one would trigger.
You could use this to create two separate buttons however, and train your users to press one then the other. Of course, the DoSaveAdd() is built into the native save button already so that one might not need to be created by you unless you want it to look or behave slightly different.
The problem as I've experienced it is the DoSaveAdd() action will work by itself, and the page redirect action also works by itself. The moment I would add both into the same button however only one would trigger.
You could use this to create two separate buttons however, and train your users to press one then the other. Of course, the DoSaveAdd() is built into the native save button already so that one might not need to be created by you unless you want it to look or behave slightly different.