Tags:
create new tag
, view all tags

Question

I can't believe I'm having problems with this... I have created a form template called IssueForm. Here's the text for it:


| *Name:*| *Type:* | *Size:* | *Values:* | *Tooltip message:* |
| TopicClassification | select | 1 | Select one..., FeatureEnhancementRequest, FeatureToDo, FeatureHack, FeatureUnderConstruction, FeatureDone, FeatureNotSuitable, IssueReport, IssueAssigned, IssueResolved, IssueDuplicate, IssueRejected, DocRequest, DocsToDo, FeatureDocumented, Other | Classify a topic |
| TopicStatus | select | 1 | ActiveTopic, ClosedTopic, TopicToDelete | Classify topic status |
| ProjectGroup | checkbox | 3 | None, KpiProject, GenesisProject, CollaborationProject, TrainingProject, Other | Classify by dev area |
| Priority | select | 3 | High, Medium, Low | Priority |
| Assigned to | select | 4 | BillyJoe, JimBob, SueEllen, RaeJean, MaryBeth | |


Then I have a webform called IssueForm, which looks like this: * Do you mean NewIssueTemplate? - PeterThoeny
---+ Issue: %TOPIC%

---++ Info:

| TopicClassification | |
| TopicStatus | |
| ProjectGroup | |
| Priority | |
| Submitted By | %WIKIUSERNAME% |
| Date Submitted | %DATE% | 

---++ Test case

   * 
   * 

---++ Environment





---++ Fix record



The problem is that when I create a topic (using "hidden" HTML form fields) using

  • templatetopic="NewIssueTemplate"
  • formtemplate="IssueForm"

The form data doesn't display during viewing, but it does when you edit/create a topic! I've checked the topics that get created and the meta information appears to be fine:


%META:FORM{name="IssueForm"}%
%META:FIELD{name="TopicClassification" title="TopicClassification" value="IssueReport"}%
%META:FIELD{name="TopicStatus" title="TopicStatus" value="ActiveTopic"}%
%META:FIELD{name="ProjectGroup" title="ProjectGroup" value="CollaborationProject"}%
%META:FIELD{name="Priority" title="Priority" value="High"}%
%META:FIELD{name="Assignedto" title="Assigned to" value="BillyJoe"}%


I'm sure this is something simple, but I'd rather see if other people have seen/fixed this problem before I spend any more hours trying to figure this one out.

  • TWiki version: Athens
  • Web server: Apache 1.3.22
  • Server OS: Linux
  • Web browser: MSIE
  • Client OS: Win XP

-- DavidWeller - 13 Dec 2001

Answer

(Above META tags in verbatim tags got merged into the meta data of this topic, is fixed.)

Make sure to add the IssueForm to the NewIssueTemplate. To be able to do that you need to add IssueForm to the WEBFORMS' WebPreferences variable.

Also, it seems like you try to duplicate the form content in the ---++ Info: section, which does not work. The form content is meta data, handled separately from the topic text.

-- PeterThoeny - 21 Dec 2001

The real problem was in the actual "view template", which didn't have the correct meta tags. I managed to fix it now. I was trying to solve the problem in the wrong place smile

-- DavidWeller - 23 Dec 2001

Topic revision: r3 - 2001-12-23 - DavidWeller
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.