form-gear icon indicating copy to clipboard operation
form-gear copied to clipboard

MultipleSelectInput with open-end answers?

Open jameslao opened this issue 3 years ago • 3 comments

Is it possible to have open-ended ("Others") answer for MultipleSelectInput? Adding "open" as an option doesn't seem to do anything. Also, adding [{"label": "lastId#0","value": "0"}] seems to put lastId#0 into the box?

image

jameslao avatar Aug 10 '22 23:08 jameslao

Hi James, thanks for your concern. Unfortunately, the "open" answer is not available to apply on MultipleSelectInput, nor to SelectInput. As of now, it's only available for Radio and Checkbox Input.

In addition, [{"label": "lastId#0","value": "0"}] is a "helper" option for NestedInput.

Thanks for bringing out the issue, truly appreciate it. 🚀

AdityaSetyadi avatar Aug 11 '22 01:08 AdityaSetyadi

Thank you! You guys have done a spectacular job. Maybe it can be helpful to mention this in the document https://github.com/AdityaSetyadi/form-gear#input-for-listselectinputrepeat-multipleselectinput-radioinput-and-checkboxinput. For now I'm adding a value check to enable a separate question.

jameslao avatar Aug 11 '22 02:08 jameslao

Terima kasih! Your feedback is very much appreciated, it means a lot to us. We apologize for the inconvenience and will pay more attention to the documentation in the future.

In fact, we designed the "open" answer to provide the same level of answers on the same component, as we discovered that matching answers to different components would be challenging in the data processing.

AdityaSetyadi avatar Aug 11 '22 03:08 AdityaSetyadi