Tags:
create new tag
view all tags

Question

Hi, I want a modified implementation of the

 %COMMENT{type="supportquery"}%
on my TWiki installation. I copied the following from UserCommentsTemplate to my UserCommentsTemplate

%TMPL:DEF{PROMPT:supportquery}%%TMPL:P{promptbox}%Change status to: <select %DISABLED% name="SupportStatus">
<option %IF{"'%FORMFIELD{SupportStatus}%'='AskedQuestions'" then="selected='selected'"}%>AskedQuestions</option>
<option %IF{"'%FORMFIELD{SupportStatus}%'='AssignedQuestions'" then="selected='selected'"}%>AssignedQuestions</option>
<option %IF{"'%FORMFIELD{SupportStatus}%'='AnsweredQuestions'" then="selected='selected'"}%>AnsweredQuestions</option>
<option %IF{"'%FORMFIELD{SupportStatus}%'='ClosedUnanswered'" then="selected='selected'"}%>ClosedUnanswered</option>
</select>%TMPL:END%
%TMPL:DEF{OUTPUT:supportquery}%%TMPL:P{OUTPUT:threadmode}%%TMPL:END%

Now when I put the line

%COMMENT{type="supportquery"}%
in a page of my TWiki, change the status (to say 'AssignedQuestions') and click 'Add Comment', the status changes back to 'AskedQuestions'.

Where am I going wrong ?

Environment

TWiki version: unspecified
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin, CommentPlugin
Server OS: Windows 2003
Web server: Apache 1.3.39
Perl version: 5.008008 (cygwin)
Client OS: Windows XP
Web Browser: IE 6
Categories: Plugins

-- ChengappaCB - 24 Feb 2008

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

I guess you missed to copy and activate the WebForm form as well. It consists of just one field SupportStatus. This is where the support query comment persistently stores your selection!

-- HaraldJoerg - 24 Feb 2008

That is right ! Now it is working. Thank you very much !

-- ChengappaCB - 25 Feb 2008

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2008-04-03 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.