General developer forum

Moodle Form API - autocomplete element is changing data

 
Picture of Andraž P.
Moodle Form API - autocomplete element is changing data
 

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.



 
Average of ratings: -