Simple form with just 2 columns, a dropdown and textarea, and the rule to show textarea when a user made a choice in a dropdown and that is greater than 2
ConfiForms Form Definition | ||
---|---|---|
| ||
This is how the configuration for Registrations Control looks like in the editor
The form dialog itself, online
ConfiForms (FormView) Registrations Control |
---|
Storage format for this simple 2 column form
Code Block |
---|
<ac <ac:structured-macro ac:macro-id="a27cf138-2081-4b5c-8dcf-435b5a4c82e5" ac:name="confiform" ac:schema-version="1"> <ac:parameter ac:name="formName">f1</ac:parameter> <ac:rich-text-body> <p> <ac:structured-macro ac:macro-id="4bd4edbc02d9f61f-4d04bf1b-47ed49bd-823a8cd7-e90521ec741a25acd37f98b0" ac:name="confiform-field-definition" ac:schema-version="1"> <ac:parameter ac:name="fieldName">choice</ac:parameter> <ac:parameter ac:name="fieldLabel">Choice</ac:parameter> <ac:parameter ac:name="values">false[1=One|2=Two|3=Three|4=Four|5=Five|]</ac:parameter> <ac:parameter ac:name="fieldDescription">When more than 2 selected the comment field is shown</ac:parameter> <ac:parameter ac:name="type">select</ac:parameter> </ac:structured-macro> </p> <p> <ac:structured-macro ac:macro-id="3af9129aa1325449-882bd376-4ba94368-8f3581fb-ce8af165c06d2661eef2a1ce" ac:name="confiform-field-definition" ac:schema-version="1"> <ac:parameter ac:name="fieldName">comment</ac:parameter> <ac:parameter ac:name="fieldLabel">Type your comment</ac:parameter> <ac:parameter ac:name="type">textarea</ac:parameter> </ac:structured-macro> </p> <p> <ac:structured-macro ac:macro-id="b91cda0eaff88342-59b2f6db-4bb645a7-a7db8003-b319ed648d15947c5c1e70f7" ac:name="confiform-field-definition-rules" ac:schema-version="1"> <ac:parameter ac:name="condition">choice:>2</ac:parameter> <ac:parameter ac:name="fieldName">comment</ac:parameter> <ac:parameter ac:name="action">Show field</ac:parameter> <ac:parameter ac:name="actionFieldName">choice</ac:parameter> <ac:parameter ac:name="withReverseRule">true</ac:parameter> </ac:structured-macro> </p> </ac:rich-text-body> </ac:structured-macro> <ac:structured-macro ac:macro-id="67eb0856-9621-4e39-84b2-051e67ec0a3d" ac:name="confiform-entry-register" ac:schema-version="1"> <ac:rich-text-body> <table border="0" style="border: 0.0px;"> <ac:structured-macro ac:macro-id="bdbf0409-d2da-4096-8318-2d2c690ac209" ac:name="table" ac:schema-version="1"> <ac:parameter ac:name="style">border:0px;width:100%;</ac:parameter> <ac:rich-text-body> <tbody style="width: 100.0%;<ac:structured-macro ac:macro-id="89db9f05-f95a-47a3-87a2-3e9cf631a80a" ac:name="tr" ac:schema-version="1"> <tr style="border: 0.0px; <ac:parameter ac:name="style">border:0px;</ac:parameter> <ac:rich-text-body> <ac:structured-macro ac:macro-id="8c2ed390-830a-4805-8a94-657b0b0a9b5a" ac:name="td" ac:schema-version="1"> <td style="border: 0.0px;"> <ac:parameter ac:name="style">border:0px;</ac:parameter> <ac:rich-text-body> <p> <ac:structured-macro ac:macro-id="683053d6f035c812-c2bafc97-4fdd4fbd-b2d6824a-9db427fb542118c93bbf1d33" ac:name="confiform-field" ac:schema-version="1"> <ac:parameter ac:name="fieldName">choice</ac:parameter> <ac:parameter ac:name="withLabel">true</ac:parameter> </ac:structured-macro> </p> </ac:rich-text-body> </td> ac:structured-macro> <td style="border: 0.0px;width: 70.0%;"><ac:structured-macro ac:macro-id="19a3adff-28be-4c38-89c8-d2b0f217b215" ac:name="td" ac:schema-version="1"> <ac:parameter ac:name="style">border:0px;</ac:parameter> <ac:rich-text-body> <p> <ac:structured-macro ac:macro-id="1a7b606b61415777-d02808df-4aa243fa-997d854b-b9f82a1685369b9261638230" ac:name="confiform-field" ac:schema-version="1"> <ac:parameter ac:name="fieldName">comment</ac:parameter> <ac:parameter ac:name="withLabel">true</ac:parameter> </ac:structured-macro> </td> </p> </ac:rich-text-body> </ac:structured-macro> </ac:rich-text-body> </tr>ac:structured-macro> </tbody>ac:rich-text-body> </table>ac:structured-macro> </ac:rich-text-body> </ac:structured-macro> |