HTTP Get

Flip 09 Dec, 2011
Hi,

I'm new on Chronoforms. I searched for this topic, but i can't get an answer.
So, what is my question:

I have a form with 5 radio Buttons.
I want to check the dependent radio button from the referer link like http://domain/contact?radio=2.
This should check the radio button 2.

Is it possible ? How can i do this ?

greetings

Flip
GreyHead 09 Dec, 2011
Hi Flip,

Is this ChronoForms v4? Then provided that the name of the link parameter is the same as the checkbox name this will work automatically (at least I think it will).

Otherwise you may need to add some custom code. What is the HTML for your checkbox group?

Bob
Flip 12 Dec, 2011
Hi Bob,

the html ist:
<label for="product">Product</label>
<input type="hidden" alt="ghost" value="" name="checkproduct">
<input id="checkproduct_1" class="" type="checkbox" value="1" title="" name="checkproduct[]">
<label for="checkproduct_1">Product 1</label>
<input id="checkproduct_2" class="" type="checkbox" value="2" title="" name="checkproduct[]">
<label for="checkproduct_2">Product 2</label>
<input id="checkproduct_3" class="" type="checkbox" value="3" title="" name="checkproduct[]">
<label for="checkproduct_3">Product 3</label>

So i want make a checkbox checked on the refered link.
I tried it with some options, but it doesn't seem to work.
What is the right syntax for the link to get it checked ?
<!-- w --><a class="postlink" href="http://www.domain.com/index.php/product?checkproduct_1=1">www.domain.com/index.php/product?checkproduct_1=1</a><!-- w -->
<!-- w --><a class="postlink" href="http://www.domain.com/index.php/product?checkproduct_1=checked">www.domain.com/index.php/product?checkproduct_1=checked</a><!-- w -->
Flip 13 Dec, 2011
i missed a information.
It's Chronoforms v4 on j1.5
GreyHead 14 Dec, 2011
Hi Flip,

Please try using the name in the url, not the id &checkproduct=2

Bob
Flip 14 Dec, 2011
Yes, that work! My mistake was the upper and lower cases in the name of the checkbox.

Many many thanks Bob!
This topic is locked and no more replies can be posted.