Issues with HTML (drop-down, textarea, JS, "required" attribute)
I've designed a survey in OSWeb and ran into 4 different issues, specifically with the HTML widget:
1) Drop-down menues don't work as intended. They are displayed and items can be select, but I cannot access whatever is selected. In the output, it's always undefined/Null, same goes for printing the value to the console.
2) Same goes for textareas: whatever is entered cannot be accessed, it's always "undefined".
3) Trying to assign these values to variables also doesn't work, since JS code within HTML (using the <script> tags) often gets ignored. Using the JS widget works, but implementing JS code within the HTML widget is a bit wonky.
4) I've reported an issue with the "required" attribute before, which was addressed (thanks again!). However, it now works too well! All of the items that feature that attribute now absolutely have to be selected, which is an issue for connected ones. For example, if I use the required attribute for radio buttons, which should result in the question being mandatory, currently the exact item with the attribute is mandatory. If it's added to all options, the question cannot be answered anymore because all items are then mandatory, which is impossible since only one can be selected at a time.
Thank you very much in advance!
Cheers
Comments
Hi @ChrIm ,
Thanks for reporting these issues 👍️ Since you seem keen on contributing with these bug reports, would it be possible to file them as issues in the GitHub issue tracker? That way it's easier to keep track of these things during development. It would also be helpful to have concrete examples that illustrate the issues. (For example, 'cannot be accessed' is a bit vague. I suspect it refers to the experimental variable not being set to the content of the input, but it would be clearer with an example.)
Thanks!
— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi @sebastiaan,
Excellent point, I will file them on GitHub then :)
Cheers!