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:truechoices1,2Show fieldfilterornottrue

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">f<>f1</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="1ba88924-c7c1-447a-a3d2-33989ba246cd" 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="78952f96-ab9f-4964-a798-fc3d09c21a18" 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="e0cc8943-96c0-4a1d-8d1e-0d0a0ea21231" 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="e1263074-cf79-4154-8279-aceaed18a0e5" 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">1,2</ac:parameter>
        <ac:parameter ac:name="action">Show field</ac:parameter>
        <ac:parameter ac:name="actionFieldName">filterornot</ac:parameter>
        <ac:parameter ac:name="withReverseRule">true</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>