Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
ConfiForms Form Definition
formNamef
true

 

filterornotFilter or not?Please select if you want to see the list below filtered (showing only 1st and 2nd options)checkbox

choicesChoicesfalse[1=choice 1|2=choice 2|3=choice 3|]truecheckbox_group

filterornot:truechoiceschoices:1 OR choices:2Apply Filter on a fieldfilterornot

filterornot:falsechoices*Apply Filter on a fieldfilterornot

Storage format for the solution

Code Block
<ac:structured-macro ac:macro-id="1fba5faa-51a0-433c-9bbc-a1e024d09960" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">f1</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="d03e41e6-1040-47a8-96c8-e001eabf6628" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:parameter ac:name="embedded">true</ac:parameter>
      <ac:rich-text-body>
        <p> </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <ac:structured-macro ac:macro-id="decb9bc3-2a06-4662-89c3-f582ce550e2e" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">filterornot</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Filter or not?</ac:parameter>
        <ac:parameter ac:name="fieldDescription">Please select if you want to see the list below filtered (showing only 1st and 2nd options)</ac:parameter>
        <ac:parameter ac:name="type">checkbox</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="cfddde2f-5cf5-4413-9374-4c8c46bfc5c0" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">choices</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Choices</ac:parameter>
        <ac:parameter ac:name="values">false[1=choice 1|2=choice 2|3=choice 3|]</ac:parameter>
        <ac:parameter ac:name="extras">true</ac:parameter>
        <ac:parameter ac:name="type">checkbox_group</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="d52b2412-f2b9-4257-9a26-da679a638092" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="condition">filterornot:true</ac:parameter>
        <ac:parameter ac:name="fieldName">choices</ac:parameter>
        <ac:parameter ac:name="values">choices:1 OR choices:2</ac:parameter>
        <ac:parameter ac:name="action">Apply Filter on a field</ac:parameter>
        <ac:parameter ac:name="actionFieldName">filterornot</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="4390df31-b8e7-40e9-8cb6-c702dcc71680" ac:name="confiform-field-definition-rules" ac:schema-version="1">
        <ac:parameter ac:name="condition">filterornot:false</ac:parameter>
        <ac:parameter ac:name="fieldName">choices</ac:parameter>
        <ac:parameter ac:name="values">*</ac:parameter>
        <ac:parameter ac:name="action">Apply Filter on a field</ac:parameter>
        <ac:parameter ac:name="actionFieldName">filterornot</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>