Difference: VarFORMFIELD (8 vs. 9)

Revision 92017-12-31 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"

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

Line: 16 to 16
 
  • Example: %FORMFIELD{"ProjectName" topic="Projects.SushiProject" default="(not set)" alttext="ProjectName field not found"}%
  • Example: %FORMFIELD{"Title" topic="%INCLUDINGTOPIC%" }%
    • Note: Specify topic="%INCLUDINGTOPIC%" if you have a base topic that includes a report topic, and in the report topic you want to reference a field of the base topic
Added:
>
>
  • Example: %FORMFIELD{ "LastName" topic="%USERSWEB%.%WIKINAME%" encode="safe" }%
    • Note: Returns the "LastName" field from your profile page TWikiGuest
    • TIP Tip: Use encode="safe" to guard against Cross-Site Scripting (XSS) attacks
 
Changed:
<
<
>
>
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.VarFORMFIELD.