I have an old web app that I've inherited support for. The client wanted to add the ability to add attachments to a document but wanted users to be able to provide some additional information about the attachment they were submitting. So, I created a new form with the info. fields they wanted and a File Upload control. They click a link on the doc, it opens the attachment form, the fill it out, attach the file and submit. Here's where the problem comes in. After they submit this attachment I wanted to redirect them to the document that they were on when they clicked the "add attachment" link. No big problem I thought... just add an HTTP_Referer field and a $$Return that uses that HTTP_Referer value to redirect them. I've done this numerous times in the past with no problem. However, for some reason it isn't working here. My fields are setup as following...
Field Name: HTTP_Referer
Type: Text - Computed for display
Value: HTTP_Referer
Field Name: $$Return
Type: Text - Computed for display
Value: "[" + HTTP_Referer + "]"
When I open the attachment form both of those fields are set to the correct value (the URL of the original document) but as soon as I submit the form it just reloads itself and now shows the values of those 2 fields as being the URL of the attachment form instead of the URL of the original document.
I'm at a complete loss here. Any advice of what to look at would be greatly appreciated.
Cheers!
Brian
Feedback number WEBB8UZLVA created by Brian Whitlow on 06/06/2012
Status: Open
Comments: