Forums

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

How to make a nested Required ActionFieldName (Show Field) on ConfiForms?

Agilan Ampigaipathar December 9, 2019

I'm trying to make multiple ActionFieldNames that show expanded fields when an option is clicked.

For example:

Required ActionFieldTest1 is a FieldName that has 4 multi-select options.

ActionFieldTest1 : Test1, Test2, Test3, Test4

When any of the 4 multi-select options are clicked, it would popup the selection's respective corresponding section. The sections are a radio option with 2 choices that is also required.

Test1 would popup Section1, Test2 would popup Section2, Test3 would popup Section3, Test4 would popup Section4

But, when Test1 and Test2, for example get clicked, then Section1 and Section 2 popups as expected, but the fact that Secton3 and Section4 are also mandatory, there is an error prompt that they need to be filled out despite it being hidden and not expanded as Test3 and Test4 were never clicked. How do I solve this to work as expected where the fields only popups when the corresponding respective parent field is clicked regardless of if other subfields are mandatory?

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Champion
December 9, 2019

If this question is about ConfiForms, as the title says then it is not about Jira software, but about Confluence.

As ConfiForms is a plugin for Confluence

Mandatory fields need to be filled in, making the fields hidden does not make non-mandatory

You need to make the field as not mandatory or set the default, not empty, values to the fields when you hide them

Agilan Ampigaipathar December 9, 2019

set the default, not empty, values to the fields when you hide them, How do I do this, specifically I know as validation rules, "^(?=\s*\S).*$" checks if its not empty but when and where do I use this? Would the parent field and its child field also have to mandatory when using validation rules? How do I take into account when a fieldname is being hidden on the validation rules?

Alex Medved _ConfiForms_
Community Champion
December 10, 2019
Like Agilan Ampigaipathar likes this
Michael Taylor
Contributor
March 22, 2021

That works okay, until you get above 3 or levels deep of validation. Then it gets too messy.

I found that Smart classifier was much better, and easier. Vertuna's documentation is a little rough to get through, but this example will help you understand.

https://wiki.vertuna.com/display/TEST/Using+smart+classifier+field+built+from+a+from+with+3+columns+-+3+levels+deep+classifier

Suggest an answer

Log in or Sign up to answer