ConfiForms Form Definition |
---|
|
choiceChoicefalse[1=one|2=two|3=three|]select answer1Answer1checkbox answer2Answer2checkbox answer3Answer3checkbox answer4Answer4checkbox id:[empty]id,entryId,answer1,answer2,answer3,answer4choice:[entry.choice]Reset valuetruechoice!choice:[empty]entryId=[entry.id]&answer1=[entry.answer1]&answer2=[entry.answer2]&answer3=[entry.answer3]&answer4=[entry.answer4]choice:[entry.choice]Lookup and set valuetruechoice!id Delete ConfiForms EntryonCreatedchoice:[empty]entryId,answer1,answer2,answer3,answer4choiceentry.choice] AND !id:[entry.id]
_user.userInSecurityGroup(confluence-administrators):falseNo permissions to submit the formValidation rulechoice]Reset valuetruechoice
|
Choose option 1 from "Choice" field to initiate a lookup
Warning |
---|
Please note that when you see this demo as anonymous user, you will not be able to update the record (no permissions!) |
ConfiForms (FormView) Registrations Control |
---|
|
|
...
Code Block |
---|
<ac:structured-macro ac:macro-id="a0ae2d3f-839b-47e1-889a-812cc57fc819" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">f1</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="3f10281e-7deb-475f-90bb-e38f3289949d" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">choice</ac:parameter>
<ac:parameter ac:name="fieldLabel">Choice</ac:parameter>
<ac:parameter ac:name="values">false[1=one|2=two|3=three|]</ac:parameter>
<ac:parameter ac:name="type">select</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="8e15928d-197f-478d-bbe2-98b3934b9337" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">answer1</ac:parameter>
<ac:parameter ac:name="fieldLabel">Answer1</ac:parameter>
<ac:parameter ac:name="type">checkbox</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="74eb2abf-48db-4ac2-a83f-06c8add859a8" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">answer2</ac:parameter>
<ac:parameter ac:name="fieldLabel">Answer2</ac:parameter>
<ac:parameter ac:name="type">checkbox</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="5c5affd2-aed3-4187-bfbd-2b0766304009" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">answer3</ac:parameter>
<ac:parameter ac:name="fieldLabel">Answer3</ac:parameter>
<ac:parameter ac:name="type">checkbox</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="abd6fcc4-7584-4b29-b21b-3dc5438a554b" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">answer4</ac:parameter>
<ac:parameter ac:name="fieldLabel">Answer4</ac:parameter>
<ac:parameter ac:name="type">checkbox</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="b1cd0a1f4d1eae52-ab2fd748-4127484a-a94cbd23-dcae288f17c111c9d6f6fd43" ac:name="confiform-field-definition-rules" ac:schema-version="1">
<ac:parameter ac:name="condition">id:[empty]</ac:parameter>
<ac:parameter ac:name="fieldName">entryId=[entry.id]&answer1=[entry.answer1]&answer2=[entry.answer2]&answer3=[entry.answer3]&answer4=[entry.answer4]<,answer1,answer2,answer3,answer4</ac:parameter>
<ac:parameter ac:name="values">choice:[entry.choice]</ac:parameter>
<ac:parameter ac:name="action">Lookup and set>Reset value</ac:parameter>
<ac:parameter ac:name="actionFieldNameonUserActionOnly">choice<>true</ac:parameter>
<<ac:parameter ac:name="actionFieldName">choice</ac:structured-macro>parameter>
</p>ac:structured-macro>
<p>
<ac:structured-macro ac:macro-id="44b48124440a31ec-837f8b59-44b049f0-97b39c6e-84a9a724f0d33d413105b059" ac:name="confiform-field-definition-rules" ac:schema-version="1">
<ac:parameter ac:name="condition">!id:[empty]</ac:parameter>
<ac:parameter ac:name="fieldName">entryId,answer1,answer2,answer3,answer4<fieldName">entryId=[entry.id]&answer1=[entry.answer1]&answer2=[entry.answer2]&answer3=[entry.answer3]&answer4=[entry.answer4]</ac:parameter>
<ac:parameter ac:name="values">choice:[entry.choice]</ac:parameter>
<ac:parameter ac:name="action">Reset>Lookup and set value</ac:parameter>
<ac:parameter ac:name="actionFieldName">choice</ac:parameter>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="587784142d1b8b26-8e5dd680-417b4a74-976eb26f-faca24ef5551c08cde880fb5" ac:name="confiform-entry-registerifttt" ac:schema-version="1">
<ac:parameter ac:name="action">Delete ConfiForms Entry</ac:parameter>
<ac:parameter ac:name="formNameevent">f1<>onCreated</ac:parameter>
<ac:parameter ac:name="embedded">true<title">choice:[entry.choice] AND !id:[entry.id]</ac:parameter>
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<br/>
</p>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
|