Redirect URL for buttons on the form button
The ability to redirect a user after closing the form using the buttons on the ribbon (New Responsive Forms Designer).
[ ref:00D90q6Cb.5002v2WgeSf:ref ]
Thanks for your suggestion.
@Ben: May I ask for your JS as well? I already followed you on twitter, but unfortunately I cannot send you a direct message as you are not following me...
Another Use case would be requestors versus people fielding the request.
If it's a requestor, I'd want the landing page to be a view of their requests and the statuses of those requests.
If it's a request handler, I'd want the landing page to be a view of the Queue of in progress and submitted reqeusts.
Sridhar Kandadai commented
I think this will be very useful as we do custom redirection many times
Yes, I can share it with you..can you give me a follow on twitter or something so we can exchange information? @benstori
Jamie LaPorte commented
Thanks for the response, Ben! - would you be able to share the script you used by chance? It would be helpful as a starting point.
Jamie - for a client of mine, what I did was wrote some crazy JS to get the source from the url saved it into a hidden field on the form. Then I update the save button to be just a Save/Update Button so the form doesn't close, then made the Cancel button a JS button that did a redirect based on the value in the hidden field, and then I added a 3rd button (close) that did the same thing as the Cancel button.
Jamie LaPorte commented
Are there any work arounds for something like this? I have a need where each user has their own filtered view of a list based on a particular region, but they can only re-direct back to one view(url) upon saving where they have to navigate back to the view they we're in each time the edit.
I think it would be really helpful to be able to set a dynamic redirect url based on a view or some other property in the form. Basically I would like to be able to set the new redirect URL through JS because I might not always want it to go to the same location. If you could make the redirect URL available to be set using code in the classic forms or add in variables, that would be awesome.
In SharePoint, if a user sorts or filters a list and clicks on a list item. Does something with that item, I want to be able to take the user back to that same view. The view is stored in the URL, so I can use JS to get to the Source of the URL to then fill the Redirect URL with a new value every time the form is opened.