Tags:
create new tag
, view all tags

Question

I'm having a heck of a time trying to implement a web form in a web OTHER than the Know web. I've gone through each of the steps:

  • create a new topic with my form name
  • create a twiki table (with the 5 column structure)
  • created new lines for the fields using webname.fieldname
  • save the topic

The add form option is now available when I add a new topic. I click the add form option and it lets me select the new form template. BUT when I try to change form I get an error message page that starts with, "Form Definition missing." cgi-bin/twiki/oops.pl/Test/TestTopic1?template=oopsnoformdef

When I go look at the individual text file for the new page it doesn't have the form meta data. And there's no information in the data/warning.txt file.

I'm at a bit of a loss -- how can I add forms to new webs? Thanks smile

  • TWiki version: 01 Dec 2001
  • Web server: Apache 1.3.20
  • Server OS: FreeBSD 4.5-RELEASE-p2
  • Web browser: Mozilla 0.9.9 (same error with IE6)
  • Client OS: Win2000
  • Perl: version 5.005_03 built for i386-freebsd

Let me know if there's anything I'm missing. I'm installed using the second (non-root) method.

(Thanks Peter!!)

-- EmmaJane - 24 Apr 2002

Answer

Moved from TWiki.TWikiForms.

-- PeterThoeny - 24 Apr 2002

Did you add the name of the form definition topic to the WEBFORMS setting in the WebPreferences?

-- PeterThoeny - 24 Apr 2002

Yup, I've added it to the preferences:

Basically I followed exactly the structure of the Know web, but put it all in the Test web. I even copied and pasted the form (table) definition from the Know web, so I'm sure it's not a problem with my form definition.

Also: I can add new forms in the Know web. (I current have the default plus one new form for a total of two forms.)

It feels like the Know web is using different templates -- I can't think of anything else I've done differently when setting up forms on Test vs. Know. :/

PS This is a "private" wiki, otherwise I'd post a URL here. If you're in a generous mood and want to see what I'm talking about, please drop me an email mailto:emmajane@NOSPAMxtrinsicPLEASENOSPAM.com and I'll give you a user name and password.

SOLVED!

Argh, argh, argh! I finally figured it out. There was a single white space right after the name of the form in my preferences topic. (I think I originally copied and pasted the name of the topic into the preferences.)

Is there any easy way to trim the white spaces at the end of lines in the preferences topic? I have no idea if mine is a common problem or not, but it definitely was a massive source of frustration. Of course now that I know about it, I'll know to be that much more careful when editing my preferences.

-- EmmaJane - 26 Apr 2002

I checked the code, the TWikiRelease01Dec2001 was sensitive to whitespace, the latest TWikiBetaRelease has that fixed.

-- PeterThoeny - 27 Apr 2002

Thanks for your help!!

-- EmmaJane - 28 Apr 2002

Topic revision: r7 - 2002-04-28 - EmmaJane
 
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.