molgenis / molgenis-frontend

Frontend code for MOLGENIS
GNU Lesser General Public License v3.0
6 stars 12 forks source link

Empty chapter shown if all questions including the chapter have visibleExpression false #195

Open fdlk opened 5 years ago

fdlk commented 5 years ago

How to Reproduce

Make a questionnaire with two chapters (compound attributes) Each chapter has one question. The second chapter and question have visibleExpression set to the answer to the first question. Start the questionnaire Answer the first question with false

Expected behavior

The second chapter is not shown

Observed behavior

The second chapter is shown and empty. It is not immediately clear how to finish the questionnaire

connoratrug commented 5 years ago

Not sure about the ‘Expected behavior’ here, i would expect;

this way magically disappearing and reappearing chapter are prevented. See this more as the start of a feature request, but same difference imo

fdlk commented 5 years ago

The chapter itself also has visibleExpression set to false, so I'd expect it not to be visible.

connoratrug commented 5 years ago

@fdlk yes then i agree, could you add a minimal emx showing the issue ?

fdlk commented 5 years ago

I believe @joerivandervelde has one

connoratrug commented 5 years ago

@fdlk checked with @joerivandervelde , the emx can not be made public. Still think we need a public emx / example that show what the problem is and can be used to verify the fix/feature.