If Query_String_Decoded is supposed to return everything in the URL right of the ? why am I only returning “OpenForm”
Here’s my URL string format:
…formname?OpenForm&variable=myvalue
If Query_String_Decoded is supposed to return everything in the URL right of the ? why am I only returning “OpenForm”
Here’s my URL string format:
…formname?OpenForm&variable=myvalue
Subject: RE: Query_String_Decoded question
If Query_String_Decoded is supposed to return everything in the URL right of the ? why am I only returning “OpenForm”
It does return that entire string past the “?”. Therefore the problem is somewhere other than where you think it is (i.e. Query_String_Decoded contains the correct value for the situation you’re in, but the situation is different from what you think it is, or you’re losing the rest of the value at some later point.) Without more information about what you’re doing, it’s impossible to say.
Subject: RE: Query_String_Decoded question
Ok, I am just trying to capture the URL string so that I can parse it and get myvalue. When I use the computed fields Query_String_Decoded or Query_String I am getting the same results where it is only returning the “OpenForm”. There seems to be a problem when working in iframes.
Any ideas?
Subject: RE: Query_String_Decoded question
If you are looking for a particular value and using a form, a field that uses @URLQueryString would be a better choice all around. That being said, the problem does seem to be elsewhere. Are you sure that you are passing the value you think you’re passing in the URL? How are you generating the URL?
Subject: RE: Query_String_Decoded question
I tried @UrlQueryString in my computed field. I am getting the same results. I am calling a form via a popup window in which I hardcoded the value I am trying to pass in the URL. From that, I want to grap the value and set a field on the form.
I am working in our corporate intranet which uses frames. It seems that the “&” is stopping it from returning the remainder of the URL bc it only returns “OpenForm”.
Subject: RE: Query_String_Decoded question
Care to share the pop-up code? Have you tried manually entering the URL in the browser’s address bar just to see what happens?
Subject: RE: Query_String_Decoded question
I think since you are using frames it might cause some problems. I think its taking the URL of some of the frame and not the desired frame or page that you actually want. Please double check the same.
Subject: RE: Query_String_Decoded question
I temporarily resolved my issue by changing my hardcoded URL to the following format:
…?OpenForm=myvalue
I had to move myvalue to left of the the “&” in order to pass the value. I just got rid of the “&”.
Very strange.