So the task I have been trying to accomplish entails that after a new record is added, we need to use _API_CloneMasterDetail _to copy a template record's report link. The main issue I ran into with this was obtaining the new record's _Record ID#_ before the form redirected to my _RedirectURL_.
I found though that there is a _<input type="hidden" name="rid" value"" /> _where the value is a long integer (no idea what it represents), when adding a new record and is the _Record ID#_ when messing with an existing record. For new records, the hidden input changes _right_ before the redirect takes place. So, I wired up an event handler to track when the hidden input changes to the new _Record ID#_ and then I _window.location.replace() _to my code page with the new _Record ID# _as a URL Parameter.
While this allows me to run the _API_CopyMasterDetail_ request as desired, and the new record is created with the new copied report link, I wanted to check if anyone knew if redirecting this way at this stage after the hidden input changes would break/not run an important Quick Base task? Or, is redirecting manually at this stage pretty much the same as letting the _RedirectURL_ do its thing?
The reason I can't use _RedirectURL _at this point, is updating the _RedirectURL_ _after_ the hidden input is updated doesn't seem to get respected when Quick Base decides to redirect - it uses the old value before the hidden input was updated.
Question
Redirecting After Hidden ""RID"" Input Changes on New Records
This topic has been closed for replies.
Sign up
Already have an account? Login
Login to the community
Login with Quickbase US – quickbase.com Login with Quickbase EU – quickbase.eu
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.