Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confiforms: filter depending on edit/copy button

Bartosz Drożdżal
Contributor
November 16, 2023

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)?

2 answers

0 votes
Bartosz Drożdżal
Contributor
November 16, 2023

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?

0 votes
Alex Medved _ConfiForms_
Community Champion
November 16, 2023
Bartosz Drożdżal
Contributor
November 16, 2023

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?

Alex Medved _ConfiForms_
Community Champion
November 16, 2023

Basically just like I said... using the "Apply filter on filed" rule cinditionally

http://recordit.co/S1jhGQj0cq

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events