How to add single select check box with Auto Submit Option
1. Create text Box Prompt for parameter and set default value to 1 ( we are going to use it for default selected). Name it PromptOpt.
2. Make it's property visible to No.
3. Add HTML item before it with below script and check box .
< script text= "javascript">
function handleClick(cb) {
var fW = (typeof getFormWarpRequest == "function" ? getFormWarpRequest() : document.forms["formWarpRequest"]);
if ( !fW || fW == undefined)
{
fW = ( formWarpRequest_THIS_ ? formWarpRequest_THIS_ : formWarpRequest_NS_ );
}
var f = getFormWarpRequest();
var list1 = f._textEditBoxPromptOpt;
list1.value = 1;
canSubmitPrompt();
SetPromptControl('reprompt') ;
}
< / script>
< TABLE class=tb style="WIDTH: 150px; BORDER-COLLAPSE: collapse" cellPadding=0>
< TBODY>
< TR class=tableRow>
< TD class=tableCell onclick="handleClick(this)">
< DIV class=block>< input type="checkbox" name="checkbox" id="checkbox_id"></ DIV></ TD>
< TD class=tableCell></ SPAN></ TD></ TR></ TBODY></ TABLE>