Документ взят из кэша поисковой машины. Адрес оригинального документа : http://wiki.cmc.msu.ru/System/VarFORMFIELD?cover=print;sortcol=;table=1;up=
Дата изменения: Unknown
Дата индексирования: Wed Apr 13 03:55:42 2016
Кодировка:
VarFORMFIELD < System < Foswiki

FORMFIELD{"fieldname"} -- renders a field in the form attached to some topic

  • Syntax: %FORMFIELD{"fieldname"}%
  • Supported parameters:
    Parameter:Sorted ascending Description: Default:
    "fieldname" The name of a Data form field required
    alttext="..." Text shown if the field is not defined in the topic (even if it is specified in the form definition). For example, this is used when a field exists in the form definition, but the referring topic hasn't been edited since it was added. ""
    default="..." Text shown if the field is defined in the topic, but the field value is empty. For example, a text field for which all the content has been deleted. ""
    format="..." Format string. $value expands to the field value, and $name expands to the field name, $title to the field title, $form to the name of the form the field is in. The standard format tokens are also expanded. "$value"
    rev="n" Specifiy a revision of the topic. If not specified, defaults to the most recent rev (or the viewed rev if viewing an old rev of the same topic)
    topic="..." Topic where form data is located. May be of the form Web.TopicName Current topic
  • Example:
     %FORMFIELD{"ProjectName"
       topic="Projects.SushiProject"
       default="(no project name given)"
       alttext="ProjectName field not found in form"
     }%
  • Related: SEARCH

This topic: System > WebHome > Macros > VarFORMFIELD
Topic revision: 19 Sep 2010, ProjectContributor
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback