Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Steps to reproduce:
1. Create a checkbox-input-editor with a single option with value 'yes' (https://apache-airavata-django-portal.readthedocs.io/en/latest/admin/app_inputs/#checkboxes)
2. Set the Initial Value of the input to 'no'
3. Create a dependent input that shows when the value of the previous input has a value of 'yes'.
4. Create an experiment from the application and try to toggle the dependent field.
Actual result
Dependent field never displays
Expected Result
Dependent field should display
Analysis
In debugging this locally, I see that the value of the checkbox when unchecked is 'no', which is somewhat expected since the default value is 'no'. But when the checkbox is checked, the value becomes 'no,yes', instead of 'yes'. It never becomes 'yes' no matter if you check or uncheck it. Perhaps the CheckboxInputEditor is assuming that the default value is one of the option's values, but this may not be the case.