I've had no luck in the past three weeks trying to figure this out...
Any help would be appreciated.
it's just not possible to do this in one go I'm afraid.
Renaming the form requires to save it with a new name first.
Flattening is only possible by printing the form or by a special LivaCycle server module.