We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Question

I'd like to set up an HTML-form to be included in pages with a TWiki-form. The HTML-form will use FORMFIELD to create a new page (from template) with the TWiki-form, changing a few values. I want the HTML-form in an included file for ease of maintenance. But the FORMFIELDs get evaluated in the context of the included file. I've figured out I can escape them with CALC{$CHR(37)..., but this is pretty ugly. Is there a cleaner way?

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: TWikiVMDebianStable
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Forms

-- JustinLove - 20 Oct 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

VarFORMFIELD has a topic="" parameter. Use it to point to the including topic, e.g. topic="%INCLUDINGWEB%.%INCLUDINGTOPIC%".

-- PeterThoeny - 21 Oct 2006

 
Change status to:
Topic revision: r2 - 21 Oct 2006 - 04:24:27 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback