Hi,
Is there any way to set a filter to a dropdown field depending on the selection of the edit or copy button (on CardView)?
I have dropdown field with option1, option2 and option2.
If I select the edit button, I would like only option1 to appear.
If I select the copy button, I would like only option1 or option2 to appear.
How can i do this?
You can set up a rule to filter options in a choice-based field conditionally
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have dropdown field with option1, option2 and option3.
If I select the edit button, I would like only option1 to appear.
If I select the copy button, I would like only option2 or option3 to appear.
How can i do this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Basically just like I said... using the "Apply filter on filed" rule cinditionally
Full setup:
<ac:structured-macro ac:macro-id="862fff7d-5f7c-4f6c-b606-b0c46790ab40" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">form</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="bd80f317-e6d2-4644-bc5b-3d524aa274bd" ac:name="confiform-entry-register" ac:schema-version="1">
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<ac:structured-macro ac:macro-id="b4a9ec3f-ab87-4c15-8f94-23ef45784e39" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">options</ac:parameter>
<ac:parameter ac:name="fieldLabel">Options</ac:parameter>
<ac:parameter ac:name="values">false[option1=option1|option2=option2|]</ac:parameter>
<ac:parameter ac:name="type">select</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="7d7369d0-53b8-4a91-8ac3-4759498c91be" ac:name="confiform-field-definition-rules" ac:schema-version="1">
<ac:parameter ac:name="condition">id:[empty]</ac:parameter>
<ac:parameter ac:name="fieldName">options</ac:parameter>
<ac:parameter ac:name="values">id:option1</ac:parameter>
<ac:parameter ac:name="action">Apply Filter on a field</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="9542fd78-7077-45de-8069-29741e417191" ac:name="confiform-field-definition-rules" ac:schema-version="1">
<ac:parameter ac:name="condition">!id:[empty]</ac:parameter>
<ac:parameter ac:name="fieldName">options</ac:parameter>
<ac:parameter ac:name="values">*</ac:parameter>
<ac:parameter ac:name="action">Apply Filter on a field</ac:parameter>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="d6ff98a7-f0d5-4c87-a5b4-3a7d3bd6470b" ac:name="confiform-table" ac:schema-version="1">
<ac:parameter ac:name="formName">form</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="c9166602-4187-442e-8896-61f84d5ee05e" ac:name="confiform-entry-edit" ac:schema-version="1">
<ac:parameter ac:name="showCopy">true</ac:parameter>
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
Hope it helps
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.