Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,120
Community Members
 
Community Events
165
Community Groups

Confiform form interacting with another confiform form

I am trying to have a field from one conffiform form updated a field in an diffferent confifform field.

 

example 

confiform A

field : key 

field : information 

 

confiform B 

field  : key 2 

field : where information goes 

 

condition 

If  key equal  key2

    then    where information goes   fills in information 

 

 

If this makes sense ? 

1 answer

Hi

Consider the following example (demo)

http://recordit.co/X74CpOhATZ

Storage format for the reference and import via https://marketplace.atlassian.com/apps/1210722/confluence-source-editor?hosting=server&tab=overview

<ac:structured-macro ac:name="confiform" ac:schema-version="1" ac:macro-id="b6a315f7-5117-4417-a8cf-cb5797efa3af"><ac:parameter ac:name="formName">confiformA</ac:parameter><ac:rich-text-body>
<p><ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="9150aa72-17d9-4a99-8a9d-dfe9d3750d50"><ac:parameter ac:name="fieldName">key</ac:parameter><ac:parameter ac:name="fieldLabel">Key</ac:parameter><ac:parameter ac:name="type">text</ac:parameter></ac:structured-macro></p>
<p><ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="d02bea16-a103-4940-84cf-48f6c9d6f4b2"><ac:parameter ac:name="fieldName">information</ac:parameter><ac:parameter ac:name="fieldLabel">information</ac:parameter><ac:parameter ac:name="type">text</ac:parameter></ac:structured-macro></p><ac:structured-macro ac:name="confiform-entry-register" ac:schema-version="1" ac:macro-id="a69e4db1-d026-479b-913a-3362adafad59"><ac:rich-text-body>
<p><br /></p></ac:rich-text-body></ac:structured-macro></ac:rich-text-body></ac:structured-macro>
<p>Data in confiformA</p><ac:structured-macro ac:name="confiform-table" ac:schema-version="1" ac:macro-id="11d9143d-3346-4a37-9326-9a7bbe550083"><ac:parameter ac:name="formName">confiformA</ac:parameter><ac:rich-text-body>
<p><br /></p></ac:rich-text-body></ac:structured-macro><ac:structured-macro ac:name="confiform" ac:schema-version="1" ac:macro-id="3e5043b4-fc3a-491d-a6e9-277d19ead896"><ac:parameter ac:name="formName">confiformB</ac:parameter><ac:rich-text-body>
<p><ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="a80bacd7-7fe1-490e-9ac0-5bfb05421403"><ac:parameter ac:name="fieldName">key2</ac:parameter><ac:parameter ac:name="fieldLabel">Key2</ac:parameter><ac:parameter ac:name="type">text</ac:parameter></ac:structured-macro></p>
<p><ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="977b1f23-ac48-4fe4-83a6-e3c2dccfee8b"><ac:parameter ac:name="fieldName">information2</ac:parameter><ac:parameter ac:name="fieldLabel">information2</ac:parameter><ac:parameter ac:name="type">text</ac:parameter></ac:structured-macro></p>
<p><br /></p>
<p><ac:structured-macro ac:name="confiform-field-definition-rules" ac:schema-version="1" ac:macro-id="ce392f63-8cf4-423f-bfc7-7c7a124c5912"><ac:parameter ac:name="fieldName">information2=[entry.information]</ac:parameter><ac:parameter ac:name="values">key:[entry.key2]</ac:parameter><ac:parameter ac:name="action">Lookup and set value</ac:parameter><ac:parameter ac:name="actionFieldName">key2</ac:parameter><ac:parameter ac:name="values2">confiformA</ac:parameter></ac:structured-macro></p>
<p><br /></p><ac:structured-macro ac:name="confiform-entry-register" ac:schema-version="1" ac:macro-id="5366ef9b-c2b8-42d7-8ec9-cd7008006bdd"><ac:rich-text-body>
<p><br /></p></ac:rich-text-body></ac:structured-macro></ac:rich-text-body></ac:structured-macro>

Alex 

This has taught me how to use the look and set thank you. not quite what I was looking for. conformA is where the key is created. then in confiformB you enter that key and place text in the information 2 that will change the text in information from confiformA

Another attempt :-)

Now updating the confiFormA with the data from confiFormB

See the demo: http://recordit.co/mm64E6HKvi

And the storage format:

<p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="confiform" ac:schema-version="1" ac:macro-id="b6a315f7-5117-4417-a8cf-cb5797efa3af"><ac:parameter ac:name="formName">confiformA</ac:parameter><ac:rich-text-body>
<p><ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="9150aa72-17d9-4a99-8a9d-dfe9d3750d50"><ac:parameter ac:name="fieldName">key</ac:parameter><ac:parameter ac:name="fieldLabel">Key</ac:parameter><ac:parameter ac:name="type">text</ac:parameter></ac:structured-macro></p>
<p><ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="d02bea16-a103-4940-84cf-48f6c9d6f4b2"><ac:parameter ac:name="fieldName">information</ac:parameter><ac:parameter ac:name="fieldLabel">information</ac:parameter><ac:parameter ac:name="type">text</ac:parameter></ac:structured-macro></p><ac:structured-macro ac:name="confiform-entry-register" ac:schema-version="1" ac:macro-id="a69e4db1-d026-479b-913a-3362adafad59"><ac:rich-text-body>
<p><br /></p></ac:rich-text-body></ac:structured-macro>
<p class="auto-cursor-target"><br /></p></ac:rich-text-body></ac:structured-macro>
<p>Data in confiformA</p><ac:structured-macro ac:name="confiform-table" ac:schema-version="1" ac:macro-id="11d9143d-3346-4a37-9326-9a7bbe550083"><ac:parameter ac:name="formName">confiformA</ac:parameter><ac:rich-text-body>
<p><br /></p></ac:rich-text-body></ac:structured-macro>
<p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="confiform" ac:schema-version="1" ac:macro-id="3e5043b4-fc3a-491d-a6e9-277d19ead896"><ac:parameter ac:name="formName">confiformB</ac:parameter><ac:rich-text-body>
<p><ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="a80bacd7-7fe1-490e-9ac0-5bfb05421403"><ac:parameter ac:name="fieldName">key2</ac:parameter><ac:parameter ac:name="fieldLabel">Key2</ac:parameter><ac:parameter ac:name="type">text</ac:parameter></ac:structured-macro></p>
<p><ac:structured-macro ac:name="confiform-field-definition" ac:schema-version="1" ac:macro-id="977b1f23-ac48-4fe4-83a6-e3c2dccfee8b"><ac:parameter ac:name="fieldName">information2</ac:parameter><ac:parameter ac:name="fieldLabel">information2</ac:parameter><ac:parameter ac:name="type">text</ac:parameter></ac:structured-macro></p>
<p><br /></p><ac:structured-macro ac:name="confiform-ifttt" ac:schema-version="1" ac:macro-id="dffe591f-9e38-4ab2-9f76-a72678f075ad"><ac:parameter ac:name="action">Update ConfiForms entries by filter</ac:parameter><ac:parameter ac:name="event">onCreated</ac:parameter><ac:parameter ac:name="title">information=[entry.information2]</ac:parameter><ac:parameter ac:name="extras2">key:[entry.key2]</ac:parameter><ac:parameter ac:name="who">confiformA</ac:parameter><ac:rich-text-body>
<p><br /></p></ac:rich-text-body></ac:structured-macro>
<p class="auto-cursor-target"><br /></p><ac:structured-macro ac:name="confiform-entry-register" ac:schema-version="1" ac:macro-id="5366ef9b-c2b8-42d7-8ec9-cd7008006bdd"><ac:rich-text-body>
<p><br /></p></ac:rich-text-body></ac:structured-macro>
<p class="auto-cursor-target"><br /></p></ac:rich-text-body></ac:structured-macro>
<p class="auto-cursor-target"><br /></p>

 Hope it helps

Alex

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

151 views 1 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you