Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Change form details based on check box selected.

Tariq Khatri April 18, 2021

I'm creating a request form in confluence.

The request can be used a few things.

based on selection (checkbox)

I want he field to pop up for them to fill in.

I'm using confiform for this and able to hide the field text box.

but when check box ticked the feild pops up but doesn't label.

 

 

<p class="auto-cursor-target">
<br/>
</p>
<ac:structured-macro ac:macro-id="5b06bce7-c081-4904-8b56-60c8fa92b17a" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">formTestForm</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="c6f9c814-d74f-4f9d-8483-17cf74c40729" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">tbFirst</ac:parameter>
<ac:parameter ac:name="fieldLabel">First Name</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
<ac:parameter ac:name="required">true</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="70dfffe4-af02-490b-a376-d70e06f0366f" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">acNew</ac:parameter>
<ac:parameter ac:name="fieldLabel">New</ac:parameter>
<ac:parameter ac:name="type">checkbox</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="565e4de8-b429-4e0e-b351-66e35effd4d6" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">aNew</ac:parameter>
<ac:parameter ac:name="fieldLabel">New</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="6f6405ca-2d40-414b-b028-c360ddc53288" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">bcReloc</ac:parameter>
<ac:parameter ac:name="fieldLabel">Relocation</ac:parameter>
<ac:parameter ac:name="type">checkbox</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="0d3925b3-1962-4612-8e16-7ccd1f50e445" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">bReloc</ac:parameter>
<ac:parameter ac:name="fieldLabel">Relocation</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="e6b80960-96d0-428e-bbe3-d14faf2b5515" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">ccDecom</ac:parameter>
<ac:parameter ac:name="fieldLabel">Decomission</ac:parameter>
<ac:parameter ac:name="type">checkbox</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="0f623b53-f314-487a-8a38-c0bc26140c2a" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">cDecom</ac:parameter>
<ac:parameter ac:name="fieldLabel">Decomission</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
</ac:structured-macro>
</p>
<ac:structured-macro ac:macro-id="1b04dffd-68ec-4b98-88da-2e016f9152bf" ac:name="confiform-entry-register" ac:schema-version="1">
<ac:parameter ac:name="formName">formTestForm</ac:parameter>
<ac:parameter ac:name="embedded">true</ac:parameter>
<ac:parameter ac:name="atlassian-macro-output-type">INLINE</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="b2475ec8-5294-451f-86b6-e645090009e6" ac:name="confiform-field" ac:schema-version="1">
<ac:parameter ac:name="fieldName">acNew</ac:parameter>
<ac:parameter ac:name="withLabel">true</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="33b18d6c-ce8d-4385-ac3c-9996a5cc2a2f" ac:name="confiform-field" ac:schema-version="1">
<ac:parameter ac:name="fieldName">ccDecom</ac:parameter>
<ac:parameter ac:name="withLabel">true</ac:parameter>
</ac:structured-macro> <ac:structured-macro ac:macro-id="8558e486-b34d-4be8-b583-5323b626dca1" ac:name="confiform-field" ac:schema-version="1">
<ac:parameter ac:name="fieldName">cDecom</ac:parameter>
</ac:structured-macro> <ac:structured-macro ac:macro-id="7d88b9ce-cce0-401c-a248-b0e50ef63cdd" ac:name="confiform-field-definition-rules" ac:schema-version="1">
<ac:parameter ac:name="fieldName">cDecom</ac:parameter>
<ac:parameter ac:name="action">Hide field</ac:parameter>
<ac:parameter ac:name="actionFieldName">ccDecom</ac:parameter>
</ac:structured-macro> <ac:structured-macro ac:macro-id="005a8187-d010-4834-9070-c7f5031d482b" ac:name="confiform-field-definition-rules" ac:schema-version="1">
<ac:parameter ac:name="condition">ccDecom:true</ac:parameter>
<ac:parameter ac:name="fieldName">cDecom</ac:parameter>
<ac:parameter ac:name="action">Show field</ac:parameter>
<ac:parameter ac:name="actionFieldName">ccDecom</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="5ec05212-a488-45ca-b0d5-f40b2d073310" ac:name="confiform-field" ac:schema-version="1">
<ac:parameter ac:name="fieldName">bcReloc</ac:parameter>
<ac:parameter ac:name="withLabel">true</ac:parameter>
</ac:structured-macro> <ac:structured-macro ac:macro-id="1dca532a-5810-40f1-9366-e8ab7c7fb024" ac:name="confiform-field" ac:schema-version="1">
<ac:parameter ac:name="fieldName">bReloc</ac:parameter>
</ac:structured-macro> <ac:structured-macro ac:macro-id="363ea0d1-d582-45cf-8565-d7791b2a5191" ac:name="confiform-field-definition-rules" ac:schema-version="1">
<ac:parameter ac:name="fieldName">bReloc</ac:parameter>
<ac:parameter ac:name="action">Hide field</ac:parameter>
<ac:parameter ac:name="actionFieldName">bcReloc</ac:parameter>
</ac:structured-macro> <ac:structured-macro ac:macro-id="d80e4f6c-1d2a-4005-a97b-df48c8248500" ac:name="confiform-field-definition-rules" ac:schema-version="1">
<ac:parameter ac:name="condition">bcReloc:true</ac:parameter>
<ac:parameter ac:name="fieldName">bReloc</ac:parameter>
<ac:parameter ac:name="action">Show field</ac:parameter>
<ac:parameter ac:name="actionFieldName">bcReloc</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="bf0c462f-5d18-4ad9-bb7f-27a169573c9b" ac:name="confiform-field" ac:schema-version="1">
<ac:parameter ac:name="fieldName">tbFirst</ac:parameter>
<ac:parameter ac:name="withLabel">true</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="e2e436ea-0ae5-4891-b402-46ac1012f034" ac:name="confiform-field" ac:schema-version="1">
<ac:parameter ac:name="fieldName">aNew</ac:parameter>
</ac:structured-macro> <ac:structured-macro ac:macro-id="6ba45bcb-f6ab-4aed-ad95-8c294ec65783" ac:name="confiform-field-definition-rules" ac:schema-version="1">
<ac:parameter ac:name="fieldName">aNew</ac:parameter>
<ac:parameter ac:name="action">Hide field</ac:parameter>
<ac:parameter ac:name="actionFieldName">acNew</ac:parameter>
</ac:structured-macro> <ac:structured-macro ac:macro-id="237ab0c1-a17f-4996-affe-e49093898eb5" ac:name="confiform-field-definition-rules" ac:schema-version="1">
<ac:parameter ac:name="condition">acNew:true</ac:parameter>
<ac:parameter ac:name="fieldName">aNew</ac:parameter>
<ac:parameter ac:name="action">Show field</ac:parameter>
<ac:parameter ac:name="actionFieldName">acNew</ac:parameter>
<ac:parameter ac:name="withLabel">true</ac:parameter>
</ac:structured-macro>
</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>

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 19, 2021

Hi

Choose option to show the label in ConfiForms Field macro

Screenshot 2021-04-19 at 11.34.22.png

Alex

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events