Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

File field required is not working when the form is oppened in by the smart multi-row

Marek Wilczewski April 30, 2025

I have 2 forms:
Form1:
-> system *[text]
->proceses *[smart multi-row->Form2, rendering type: "cardView"]

Form2:
-> proces *[text] 
-> procesDefnition *[file/attachment]

All fields are required.

When I open Form1 add first proceses subform and add a procesDefinition file then on submit I get the error related with the procesDefinition field. When I remove "required" option on this element it's working fine.

 

Is it possible to set a "required" option on the file/attachment element if I want to add entries only via smart multi row or this wont work? I's there any other way to do this? 

 

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Champion
April 30, 2025

Hi @Marek Wilczewski 

Just to confirm, when you set the file/attachment field as required you cannot use it from the smart multi-row field?

Is that the issue you are having?

Alex

Marek Wilczewski April 30, 2025

I can use it (add file) but after submit I get an error on this field. Acts like it didn't see the attachment and set an error on this field.

MultirowAndAttachment.jpg


<ac:structured-macro ac:macro-id="08d2f99d-f34d-4ba0-941e-e4379ac8882c" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">From1</ac:parameter>
<ac:parameter ac:name="registrationFormTitle">From1</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="8736c391-9cdd-42bf-bc0a-b17acf58107d" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">system</ac:parameter>
<ac:parameter ac:name="fieldLabel">system</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="590c292b-d678-4fc6-9732-3ba56bdd906b" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">proceses</ac:parameter>
<ac:parameter ac:name="fieldLabel">proceses</ac:parameter>
<ac:parameter ac:name="values">[349798614:From2]proces,procesDefnition,</ac:parameter>
<ac:parameter ac:name="extras">card</ac:parameter>
<ac:parameter ac:name="type">smartmultirow</ac:parameter>
<ac:parameter ac:name="required">true</ac:parameter>
</ac:structured-macro>
</p>
<ac:structured-macro ac:macro-id="85c4aa96-00f7-4680-82f5-74b770cbf9c0" ac:name="confiform-entry-register" ac:schema-version="1">
<ac:rich-text-body>
<p>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
</p>
<ac:structured-macro ac:macro-id="721b36a5-e932-4bb1-8073-85618fb7337e" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">From2</ac:parameter>
<ac:parameter ac:name="registrationFormTitle">From2</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="84450d9e-749a-43d7-a3c7-ce49c3937c2c" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">proces</ac:parameter>
<ac:parameter ac:name="fieldLabel">proces</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="fe63e4d3-2450-4593-85c9-df7f87724281" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">procesDefnition</ac:parameter>
<ac:parameter ac:name="fieldLabel">procesDefnition</ac:parameter>
<ac:parameter ac:name="type">file</ac:parameter>
<ac:parameter ac:name="required">true</ac:parameter>
</ac:structured-macro>
</p>
</ac:rich-text-body>
</ac:structured-macro>

Marek Wilczewski May 5, 2025

@Alex Medved _ConfiForms_ 

Any idea why it's not working? :( is it a bug?

Alex Medved _ConfiForms_
Community Champion
May 5, 2025

Yes, it is a small bug that is got addressed as a part of the version 3.18.1 which we will release very soon

Sorry about that

Marek Wilczewski May 6, 2025

no problem :) thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events