Page tree

Versions Compared

Key

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


Adds selected label to current page

ConfiForms Form Definition
formNamemyform
trueINLINE


labelchoiceYour label choicefalse[1=label1|2=label2|3=label3|]radio_group

Add Page LabelonCreated[entry._page.id][entry.labelchoice.label]



Source code for the solution

Code Block
<ac:structured-macro ac:macro-id="2a681113-4a70-4a35-a4cf-ef71b2a74803" ac:name="confiform" ac:schema-version="1">
  <ac:parameter ac:name="formName">myform1</ac:parameter>
  <ac:rich-text-body>
    <ac:structured-macro ac:macro-id="517c0cf5-59ef-4ce8-8051-4e746bbd7a7c" ac:name="confiform-entry-register" ac:schema-version="1">
      <ac:parameter ac:name="embedded">true</ac:parameter>
      <ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
      <ac:rich-text-body>
        <p>
          <br/>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
    <p>
      <ac:structured-macro ac:macro-id="e07bfaa0-2948-4f91-98bc-cc6ad950e395" ac:name="confiform-field-definition" ac:schema-version="1">
        <ac:parameter ac:name="fieldName">labelchoice</ac:parameter>
        <ac:parameter ac:name="fieldLabel">Your label choice</ac:parameter>
        <ac:parameter ac:name="values">false[1=label1|2=label2|3=label3|]</ac:parameter>
        <ac:parameter ac:name="type">radio_group</ac:parameter>
      </ac:structured-macro>
    </p>
    <ac:structured-macro ac:macro-id="94023246-fc08-4006-8b1a-4135cf22b3c6" ac:name="confiform-ifttt" ac:schema-version="1">
      <ac:parameter ac:name="action">Add Page Label</ac:parameter>
      <ac:parameter ac:name="event">onCreated</ac:parameter>
      <ac:parameter ac:name="title">[entry._page.id]</ac:parameter>
      <ac:parameter ac:name="extras2">[entry.labelchoice.label]</ac:parameter>
      <ac:rich-text-body>
        <p>
          <br/>
        </p>
      </ac:rich-text-body>
    </ac:structured-macro>
  </ac:rich-text-body>
</ac:structured-macro>
<p>
  <br/>
</p>
<p>
  <br/>
</p>