cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Topic Markup Language and applications: Answered

Hi everybody,

is there a simple way to access the form data of the current topic I'm editing.

For example I have attached a data form to a topic called "SoftwareTopic0004". And I have got a form field called "SoftwareName" in my data form.

Now I want to somehow access this field to display the value somwhere in a table when I view the topic.

I'v tried this:

%SEARCH{
"SoftwareTopic*"  
topic=%TOPIC% 
nonoise="on" 
noheader="on" 
nosearch="on" 
nototal="off" 
format="$formfield(SoftwareName)" 
}%

but it wasn't successful.

Anyone has a good idea?

Thanks a lot for your Help!!!!

-- MatthiasBuscher - 27 Aug 2015

See VarFORMFIELD. Note that if you are going to be using this in more than one topic, a View Template is probably the way to go. The AutoViewTemplatePlugin can associate a template with the form automatically.

Example: %FORMFIELD{"Version"}%: expands as: Version in GIT

-- GeorgeClark - 27 Aug 2015

Thank you very much !!! Exactly what I was looking for

-- MatthiasBuscher - 28 Aug 2015
 

QuestionForm edit

Subject Topic Markup Language and applications
Extension
Version Version in GIT
Status Answered
Related Topics
Topic revision: r3 - 28 Aug 2015, MatthiasBuscher - This page was cached on 23 Jun 2018 - 11:52.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy