This is what passback variables are used for. If you add one, whose value is that field, then it will be added to the query string on redirect.
Hi Josh,
thanks for the tip. I was building the redirect URL with my variables in a redirect processor but based on this approach are you saying that I don’t have to do any of that?
Passback variables are added to the redirect URL.
Hi Josh,
I guess my main question still is how do you include a variable in a URL that will drive the selection of a radio button on a form? I can add the variable to the URL ok but can’t figure out how to get that variable (i.e. “1”) to have the radio button choice get selected on the 2nd form.
If you have a URL variable called “foo” then in your radio field, in its default value field, use {get:foo}
.
Is there a default value field for a Radio Button element like there is for a Single Line Text element? I think Dropdown Select elements have the same situation.
For example, I have a radio button with 2 options, “1” & “2”. I need to have the URL variable select “2” in the radio button element when the page loads. I can have the URL contain: http://www.test.com/form2?radiobutton=2&foo=hello
I have it working great using {get:foo} for my Single Line Text elements. Where do I put {get:radiobutton}?
sorry to come late on this. There actually isn’t a way to do this just yet. especially on the radio and checkboxes. The only way I can think is to add a filter on the get field before render and then set the value depending.
I’ll look at working on a tutorial for overriding values to fields and be sure to include this.
but for now, please consider this option not supported just yet.