• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

I want to use the save script on the More template page to set a topic's parent without having to edit the topic first.

If that topic has a webform with a required field, the save script returns an error and the oops page says:

Topic Save Error

Could not save TableTest.

The required field Summary was not filled in.

Go back in your browser and insert information for all mandatory fields.

Note that the example topic already has the webform filled in, so it is not a new, empty topic.


Sorry, but a required fields is a required field. If that topic is missing a required field, it has to be edited to add it.



The point I am making is that the field is already filled in. The topic is not missing a required field - yet I get the error message.


Can you provide a testcase, please?


Test case: Sandbox.DirectSaveWithFormTest


OK. The field is not already filled in. The way the save script works is that if you have form field values in the query, then they replace what was in the form before. There is no attempt to read old field values from the topic. To do what you are trying to do, you would have to create hidden fields in the form for all the existing fields in the topic when you create the 'More' page.

I'm not saying the save script is right, just that that has always been the behaviour.



Too bad we're stuck with a sucking "Set parent" mechanism. I hope this can be solved quickly after Dakar.


Summary Save script returns error on page with required field in webform
ReportedBy ArthurClemens

SVN Range Sun, 04 Dec 2005 build 7760
AppliesTo Engine

Priority Normal
CurrentState No Action Required

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r9 - 2005-12-08 - ArthurClemens
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback