Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

There are 2 ways to pre-populate form fields in your form.有两种方法预填充表单中的表单字段。

1.

...

从请求参数中设置

通过匹配实际的字段ID,可以用请求参数中设置的值预填充表单字段。

例如,文本字段ID是“title”,我们可以使用具有相同名称的请求参数来预先填充文本字段的值。

如果您希望将其设置为只读,则可以使用* fk_ *标题作为参数名称(“fk_”作为前缀)。如果你想使其可编辑,你可以使用“fke_”前缀。

By matching the actual field id, one can pre-populate the form field with the value set in the request parameter.

For example, the text field ID is "title", we can use the request parameter with the same name to pre-populate the text field's value.

If you wish to make it as read-only, you may use the *fk_*title as the parameter name ( "fk_" as the prefix). If you wish to make it editable, you may use the "fke_" prefix.

2.

...

从请求参数获取

在表单元素的属性中,导航到“ 值”属性。使用  请求参数散列变量  来检索请求参数中设置的值。In the form element's properties, navigate to the Value attribute. Use the Request Parameters Hash Variable to retrieve the value set in the request parameter.