Last modified: 2012-02-10 20:39:55 UTC
It's currently not possible to preview a Form when you're editing it. Even if you remove the <includeonly> tag of a Form the form template won't be understood by the parser.
Created attachment 9883 [details] Patch to allow preview of forms
Arguments to formHTML
Also the message sf_preview_note need to be translated to English.
While previewing, certain items such as wpSave or wpSummary are in double (once of the Form Preview and once for the actual editing form). There should be a way inside sfgFormPrinter->formHTML to 'un-standardize' the form inputs.
Thanks for this great patch! I just added it in to Semantic Forms, although I made some changes to the code layout, the display of the preview, and the wording, to try to make the look more consistent with MediaWiki's standard appearance. Please let me know if you disagree with any of my changes - I'm marking this as "fixed", but we can continue the conversation here. By the way, it doesn't look like modifying the form to get rid of wpSave or wpSummary is necessary - when I try it, at least, clicking on those buttons doesn't do anything anyway.
Thanks you very much for commiting the patch to SVN. This addition to the code even made it to our internal corporate bulletin as a important improvement. :)
Sweet! It's a real win-win. I'm starting to use this myself, now.