Example: Using SmartCuts in HTML Forms

SmartCut variables can be used in HTML forms. This example shows the code for a simple form produced using HTML and SmartCut variables:

HTML Form Using SmartCut Variables

Note:

HTML form METHOD=POST is UTF-8 compatible for double byte character encoding.

<HTML>
<BODY>
Please choose values for the Interactive Reporting job input parameters:
<FORM name=myJobForm METHOD=POST ACTION="http://servletsHost:servletsPort/workspace/browse/run/myFolder/myBQYJob" >
<input type=text name=Limit1 value="q1\State"></input>
<select name=LimitValue1 multiple>
<option value="CA">California</option>
<option value="NY">New York</option>
<option value="NJ">New Jersey</option>
<option value="FL">Florida</option>
<option value="HI">Hawaii</option>
</select>
<input type=hidden name=ShowForm value=false>
<input type=hidden name=sso_username value=username>
<input type=hidden name=sso_password value=password>
<input type=submit name=submitbutton value="Submit Job">
</FORM>
</BODY>
</HTML>