Forum Discussion
_anomDiebolt_
10 years agoQrew Elite
I don't think the above code will work. The hidden field RedirectURL is only used to control the redirection process when the hidden field rl is empty (and if you are coming from a report listing page it will not be). So you also have to set the rl field to an empty string to make the redirection process work. Complicating this somewhat is the fact that the RedirectRUL <input> has and id attribute while the rl <input> has only a name attribute. All these oddities combine to make forcing JavaScript into the formula language a small nightmare to edit without creating a typo.
You are better off using the UNOB technique to make your QuickBase formula dead simple and throw all the logic and processing into module.js using the image onload technique.
UNOB Technique
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=371
If you have not familiar with this approach you may think I am complicating the problem - nothing could be further from the truth. Once you set up the image onload technique all you future customizations become easy to implement. You will be amazed at what these techniques can do for you - all problems solved in a few lines of script.
You are better off using the UNOB technique to make your QuickBase formula dead simple and throw all the logic and processing into module.js using the image onload technique.
UNOB Technique
https://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=371
If you have not familiar with this approach you may think I am complicating the problem - nothing could be further from the truth. Once you set up the image onload technique all you future customizations become easy to implement. You will be amazed at what these techniques can do for you - all problems solved in a few lines of script.