Confiforms: smart multi-row / IFTTT create ConfiForms entry
Asked by Bartosz Dro?d?al:

Hi [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630)

In my case I have two forms on different pages.  
Both forms have the same smart multi-row field.  

When I register a new entry in form1, I would like to create an almost empty form2 using IFTTT create confiforms entry. I only want to copy the data from the multi-row field.  

The formula multirowfieldform2=\[entry.multirowfieldform1\] does not work.  

Is there a chance to do this or does the multi-row field have limitations that make it possible?


Answers:
author: Alex Medved _ConfiForms_
body: Not sure I understand that, but the multi-value field expects a CSV value, so it might be as easy as

```
multirowfieldform2=[entry.multirowfieldform1.asList]
```

comments: author: Bartosz Dro?d?al
body: [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630)   

I forgot to add that in the multi-row field I have two text fields  

This multirowfieldform2=\[entry.multirowfieldform1.asList\] doesn't work


author: Alex Medved _ConfiForms_
body: OK, sorry, this should be something like

```
multirowfieldform2=[entry.multirowfieldform1.transform(id).asList]
```

As we want to pass the IDs as CSV list


author: Bartosz Dro?d?al
body: [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630)

Unfortunately it doesn't work.

Probably because of my slightly confusing setup.

Inside both forms - form1 and form2 - I have a separate form with 3 fields that I use for multi-row.

Will it be generally possible to create/copy data from a multi-row field with this solution?


author: Alex Medved _ConfiForms_
body: This is exactly what I understood - not sure why you have it, but it is exactly what I have tested

Here is my little test case illustrating a working approach

```
<ac:structured-macro ac:macro-id="0135ee2d-70dd-4eb6-892c-0f5c3ab84753" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">source</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="b84045a1-6aae-452d-ace0-4ce4bc613f71" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">t</ac:parameter>
<ac:parameter ac:name="fieldLabel">t</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="2c871d66-fb39-418c-a6f0-1086d8c4bae1" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">ta</ac:parameter>
<ac:parameter ac:name="fieldLabel">ta</ac:parameter>
<ac:parameter ac:name="type">textarea</ac:parameter>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<br/>
</p>
<ac:structured-macro ac:macro-id="50062a12-c55a-4a64-95a8-611dd0b07bef" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">formA</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="0c812ea9-4bc8-4e41-a894-ad79faa23bbd" 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="6242eb7f-78b0-4f93-a8a1-f87adb790d97" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">multirowfieldform1</ac:parameter>
<ac:parameter ac:name="fieldLabel">multirowfieldform1</ac:parameter>
<ac:parameter ac:name="values">[186843200:source]t,ta,</ac:parameter>
<ac:parameter ac:name="type">smartmultirow</ac:parameter>
</ac:structured-macro>
</p>
<ac:structured-macro ac:macro-id="3e99d199-336d-4c1c-bc8b-11b13b6be308" ac:name="confiform-ifttt" ac:schema-version="1">
<ac:parameter ac:name="action">Create ConfiForms Entry</ac:parameter>
<ac:parameter ac:name="event">onCreated</ac:parameter>
<ac:parameter ac:name="title">multirowfieldform2=[entry.multirowfieldform1.transform(id).asList]</ac:parameter>
<ac:parameter ac:name="who">formB</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>
<p>
<br/>
</p>
<ac:structured-macro ac:macro-id="f73de7be-beb6-4e64-88bb-c37058a8007d" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">formB</ac:parameter>
<ac:rich-text-body>
<ac:structured-macro ac:macro-id="fd069449-3c11-4946-b83f-7ac1c5695506" 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="5e1039b6-de07-4e78-9552-3daad9a61fa9" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">multirowfieldform2</ac:parameter>
<ac:parameter ac:name="fieldLabel">multirowfieldform2</ac:parameter>
<ac:parameter ac:name="values">[186843200:source]t,ta,</ac:parameter>
<ac:parameter ac:name="type">smartmultirow</ac:parameter>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro>
```

Hope it helps

Alex


author: Bartosz Dro?d?al
body: Perfect! Thanks a lot!


Tags: addon-com.vertuna.confluence.plugins.confiforms

confiforms

confluence-data-center

confluence-server

data-center

server