Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This demo is to show how the data can actually be referenced through the smart field (not copied to the other form, but used through the smart field)

In contrast to Authors and books - using rule to copy value from a referenced field

ConfiForms Form Definition
formNameform1
Register author

 

authorAuthortext

loadmeloadmetext

ConfiForms Form Definition
formNameform2
Register bookform 2

 

pickFromPick from[11862864|form1|loadme|true||]smartselect

 

 

Showing the data over form2, referencing the "author" field in form 1 using the ("smart") field in form 2

Chaning the author field in form 1 will be REFLECTED in this form view immediately (as the field is not copied, but only referenced) 

ConfiForms TableView
formNameform2

pickFrom

Author field is from form1pickFrom.author

 

Storage format for the solution

Code Block
<ac:structured-macro ac:macro-id="24adbb2a-9287-47ae-804e-a311d97dafd4" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">form12</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="d1aa6338-4dfe-46ba-a158-f70bb87102bb" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:parameter ac:name="registrationButtonLabel">Register author</ac:parameter>
      <ac:rich-text-body>
        <p> </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <ac:structured-macro ac:macro-id="70244924-09fe-45ed-be2e-1edaae6a42fe" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">author</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Author</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="fd47aa7d-88dc-4b22-94b9-1ec398452899" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">loadme</ac:parameter>
        <ac:parameter ac:name="fieldLabel">loadme</ac:parameter>
        <ac:parameter ac:name="type">text</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="db83cd79-8b78-43b9-9092-83698a9fdeae" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">form22</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="448efcea-06f2-4ecb-a4d8-3736c9c214e1" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:parameter ac:name="registrationButtonLabel">Register form 2</ac:parameter>
      <ac:rich-text-body>
        <p> </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <ac:structured-macro ac:macro-id="8c735d3f-9bc1-4e6e-adcf-bd770b611ceb" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">pickFrom</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Pick from</ac:parameter>
        <ac:parameter ac:name="values">[11862864|form12|loadme|true||]</ac:parameter>
        <ac:parameter ac:name="type">smartselect</ac:parameter>
      </ac:structured-macro>
    </p>
    <p> </p>
  </ac:rich-text-body>
</ac:structured-macro>
<p> </p>
<p>Showing the data over form2, referencing the "author" field in form 1 using the ("smart") field in form 2</p>
<p>Chaning the author field in form 1 will be REFLECTED in this form view immediately (as the field is not copied, but only referenced) </p>
<ac:structured-macro ac:macro-id="ec068312-e1f4-49ad-9724-bb57343b0456" ac:name="confiform-table" ac:schema-version="1">
  <ac:parameter ac:name="formName">form22</ac:parameter>
  <ac:rich-text-body>
    <p>
      <ac:structured-macro ac:macro-id="1662b4d5-ca89-40c3-b7cc-bb1b36394004" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">pickFrom</ac:parameter>
      </ac:structured-macro>
    </p>
    <p>
      <ac:structured-macro ac:macro-id="33c1d2e4-ed29-46e1-bb0f-b8955aa02078" ac:name="confiform-field" ac:schema-version="1">
        <ac:parameter ac:name="overrideLabel">Author field is from form1</ac:parameter>
        <ac:parameter ac:name="fieldName">pickFrom.author</ac:parameter>
      </ac:structured-macro>
    </p>
  </ac:rich-text-body>
</ac:structured-macro>