ray Posted February 27, 2016 Report Share Posted February 27, 2016 Hello. I would like to pass multiple parameters from a Detail DataPage to another page upon saving the record. I understand how to pass the parameters and specify a destination after update. The trick for me is I would like to have multiple Save buttons on this Detail page, each with a different destination after update specification. The user would choose which Save button to use based on what DataPage they want to go to next. Is this possible? Thank you. Quote Link to comment Share on other sites More sharing options...
aam82 Posted February 29, 2016 Report Share Posted February 29, 2016 It would be very simple to separate the tasks: have an update button have buttons linking to the various pages you want them to go to instruct them to: 1. update 2. choose a next task Quote Link to comment Share on other sites More sharing options...
svitlanataran Posted February 29, 2016 Report Share Posted February 29, 2016 Hi Ray, Sure you can update form and redirect user to another URL in a one click. Also I can recommend you hiding the standard "Update" button. To do this, add a header and a footer to your datapage, click the source tab and paste the following code to the header: <script> window.onload = function hide(){ document.getElementById("Mod0EditRecord").style.visibility = 'hidden'; } </script> Then add html block and create buttons. Try the following code: <input onclick="myFunction()" type="submit" value="Click me" /> <script> function myFunction() { window.open('URL'); } </script> You can paste an URL with parameters like: http://www.yourdomain.com/page.htm?Record_ID=[@field:Record_ID] instead of URL. In your Report on the 'Destination after record update' I would recommend you selecting 'Same form' or 'Go back to result page' because you specify different redirection for each button. I hope it helps. Let me know about the results. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.