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.
AC
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.
Discarded.
CC
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.
AC
Can you provide a testcase, please?
CC
Test case:
Sandbox.DirectSaveWithFormTest
AC
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.
Discarding.
CC
Too bad we're stuck with a sucking "Set parent" mechanism. I hope this can be solved quickly after Dakar.
AC