Moodle Form API - autocomplete element is changing data

Moodle Form API - autocomplete element is changing data

by Andraž P. -
Number of replies: 0

I created a form, that has autocomplete element. One of values is "Test, working?", When I select I see proper text. When I try to save form and call get_data I get different text that is selected: "Test,working?". It removes space after comma. I'm doing something wrong? I attached photos to see the error.

Attachment Selection_082.png
Attachment Selection_083.png
Average of ratings: -