formset.txt

来自「wiki建站资源 java编写的 很好用」· 文本 代码 · 共 28 行

TXT
28
字号
The [FormSet] can be used to set default parameters to a submission.

!Parameters

* __form__ : Which form this applies to.  Mandatory.

The rest of the parameters are used by the different Form elements to set the defaults.

!Example

The following creates a form which has two fields, where the "title" is set to empty, and a hidden parameter "status" with the value "NewBug" is added.  The parameter is hidden, because there's no [FormInput] to handle it.

{{{
[{FormSet form='reportform' status='NewBug' title=''}]
[{FormOutput form='reportform' handler='BugReportHandler' populate='handler'}]

[{FormOpen form='reportform'}]
|Title of the bug:| [{FormInput type='text' name='title' size=80}]\\
''Mandatory. Please try to be brief, use a whole sentence of ten words or less.''
\\
[{FormTextarea name='description' rows=25 cols=80}]
[{FormClose}]
}}}

----

Back to [WikiForms].

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?