Forum Discussion
ElishaTenenbaum
Qrew Cadet
Hi there
My apologies for the delayed response. I'm new to javascript & quickbase and at the time of my initial posting these responses were beyond my skill level.
I've advanced a little and decided to give these solutions another go. I�m not sure how & where to plug in these different lines of code.
I tried putting Dan�s code
1) directly into a formula-url field and I get a syntax error.
2) directly into a formula-rich text I�d be redirected to ibm.com whenever I viewed a record
3) into a javascript page and loading it via iol and it would save the record but the redirect wouldn�t work
Similar challenges with Sharons & QBChampions solutions. I'm no sure how/where to put together and plug in the code.
I've had a bunch of success using some IOL scripts for other issues.
Any guidance on how to plug in your answers?
Thanks!
QuickBaseCoachD
6 years agoQrew Captain
@Elisha
My suggestion was this
Do not make a custom save button, but rather have the user launch the Add Record off this formula URL button
var text ADD = URLRoot() & "db/" & [_DBIDxxxx] & "?API_GenAddRecordForm":
var text RedirectTo = the url to redirect to;
$ADD
& "&NextURL=" & URELEncode($RedirectTo )
You can build that button on a any record and copy the generated code and paste it into a dashboard button. The formula with them calculate the URLEncoding.
My suggestion was this
Do not make a custom save button, but rather have the user launch the Add Record off this formula URL button
var text ADD = URLRoot() & "db/" & [_DBIDxxxx] & "?API_GenAddRecordForm":
var text RedirectTo = the url to redirect to;
$ADD
& "&NextURL=" & URELEncode($RedirectTo )
You can build that button on a any record and copy the generated code and paste it into a dashboard button. The formula with them calculate the URLEncoding.