|You can set the default value of a radio button, by adding a "checked" clause in the input tag:|
<input type="radio" name="smoking" value="n" checked> No<br>
<input type="radio" name="smoking" value="y"> Yes<br>
In the above example, the first option (No) will be checked by default. Your code will have to insert the clause in the field, based on a set of rules:
<input type="radio" name="smoking" value="n" <%=IIF(smoking, '', 'checked')%>> No<br>
<input type="radio" name="smoking" value="y" <%=IIF(smoking, 'checked', '')%>> Yes<br>
GoxWeb Support Team
Sent by mike hood on 10/11/2001 10:21:42 AM:
i have a radio button switch on the fwx. when a button is clicked and the form is refreshed it clears the radio selection the user chose....anyways...
what im trying to do is set the value of the radio button with a variable.
llike this.... (this.form.radio1.value = xvar).
im able to use a (request.form) to get the values of form objects but im looking for a (send.form) to set the values of form objects.
whats the best way to populate values on a form.