I'd like to have a checkbox, which when checked will either show or enable a text field, and when unchecked will hide or disable the text field: <input type="checkbox" token="reqIdFilter">
<label></label>
<choice value="Enable">Enable</choice>
<change>
<condition match="$reqIdFilter$=="Enable"">
<set token="showReqIdFilter">Y</set>
</condition>
<condition>
<unset token="showReqIdFilter"></unset>
</condition>
</change>
</input>
<input type="text" token="RequestId" depends="$showReqIdFilter$">
<label>RequestId</label>
</input> But that doesn't seem to work. Is there something wrong with the above? Second, I'd like the search to use the value of $RequestId$ only if the checkbox is checked, how can I do that? `mySearch $RequestId$` will always inject $RequestId$, how can i make this conditional on the checkbox?
... View more