Differences between Forms and QForms
It is easy to distinguish a QForm from a regular Form. When the QForms editor is open, the QForms developer can clearly see the text: "You are editing a QForm". The title bar in the editor also contains the text QForm Editor. The distinction between a regular Form and a QForm is important because a QForm serves a different purpose. QForms are meant to enter values for fields used in Text Blocks, which do not have a value yet when the Text Block is called in the Model document. For this reason some features of the regular Form are not available or are different in the QForm:
- By default, validation of questions in a QForm is set to "A non-empty answer is required." This ensures that the user enters data for fields used in the text block. If this is not desired, the option None can be selected on the tab Validation of the question. The option to select None as validation on questions in QForms requires a ITP/Create Model Package 3.5.0c or higher. In a ITP/MDK Repository version lower than 3.5.0c the validation option None is not active.
- The developer cannot insert Text Block questions. When the developer uses a Text Block question he generates new Text Blocks, which can in turn contain more empty Fields. Those should be checked again. To prevent a recursive circle from Text Block questions to the QForm the developer cannot select Text Block questions.
- The developer cannot make a question Read-only, because the user must always be able to fill in the fields by providing an answer to the question on the QForm.
- The feature to show or hide groups of questions is not available. Questions will always be shown when the assigned Field is empty, and always be hidden when they already do have a value.
- As a consequence of dropping the feature to show or hide groups of questions, the developer cannot enter a reference for a question. The function of References is to present or hide groups of questions in response to an answer to a previous question. In a QForm questions will never be hidden or shown conditionally depending on a previous answer, therefore the feature References is not applicable.
- The developer does not want a field to be filled in at first with one answer and later with another. Therefore a Field from a Field set can only be selected as answer for one question per Form.
When a user wants to select a Field as value for an Answer that is already in use for another question, he will get a warning.
It is possible to save an erroneous QForm. The error message of the QForm Editor will be stored with the revision and shown in the description pane. The revision of an erroneous QForm is tagged as 'failed', it cannot be made 'accepted' and therefore also not promoted to 'published'.
Refer to the Help of this editor for more information on creating QForms.