MvHIDE#
For each field listed, outputs separate html <input>
tags. e.g.
Syntax
<MvHIDE FIELDS = "{ expression } | variable list">
<MvHIDE>
tags are intended to be used only inside HTML forms. HTML forms are defined like this:
<form method="get | post" action="http://www.mywebsite/program.mvc">
…
</form>
When a web form is submitted, the variables and their values are passed to the receiving program specified in the action
attribute (i.e. http://www.mywebsite/program.mvc
) as name/value pairs when the form’s method
attribute specifies get
or post
. This provides a way to pass variable values to the program called by the form. The variables are received as global variables with the names specified in the <input>
and other tags.
Attributes#
Attribute | Description |
---|---|
FIELDS |
Comma-separated list of variable names. The variable names and values will be output to the browser as hidden <input> fields. |
Examples#
In this example the variables g.Screen
and g.Action
have been populated. <MvHIDE>
is used to output hidden values:
Using MvHIDE to Insert Hidden Fields
<MvASSIGN NAME="g.Screen" VALUE="SFNT">
<MvASSIGN NAME="g.Action" VALUE="ICST">
<form method="post" action="{ l.url_program_name }">
<MvHIDE FIELDS="screen, action>
</form>
The resulting HTML form would look like this:
Resulting HTML Form
<form method="post" action="http://www.mywebsite/program.mvc">
<input type="hidden" name="screen" value="SFNT"><input type="hidden" name="Action" value="INST">
</form>