Confiform form interacting with another confiform form
Asked by Lynn Long:

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 ?


Answers:
author: Alex Medved _ConfiForms_
body: 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](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

comments: author: Lynn Long
body: 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


author: Alex Medved _ConfiForms_
body: 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


Tags: confiforms

cloud

confluence-cloud