Hi Folks,Outsystems Reactive web application :
In the TextArea widget, when I enter multiple blank spaces between two words, the spaces are visible in the widget itself. However, the variable bound to that TextArea automatically removes the extra spaces, while the database saves the trimmed value. I need the exact text entered by the user, including all spaces, to be stored in the database.
For example, when I enter the text "Spaces finished text" in the TextArea, the bound variable contains "Spaces finished text" instead. This means the multiple spaces between words are being automatically removed or normalized. I need the variable and the database to retain the exact text entered by the user, including all consecutive spaces.
Your help would be greatly appreciated.Thanks,Imtiyaz
Hi @Meer Imtiyaz Ali ,
I have followed the same steps you defined, but the space is not being removed automatically. The content remains exactly the same as what was entered.
I have also attached a demo OML for reference. Could you please review it and let me know what I might be missing? Alternatively, could you share the implementation you used so I can compare it with mine?DemoHope this will help you.
@Meer Imtiyaz Ali : What you are experiencing is not a normal behavior. One possibility is that a browser plugin or extension is modifying the TextArea value.
Could you try disabling the browser extensions and see if that makes any difference? You could also try opening the application in a different browser and check if you still see the same issue.
@Deepa Tiwari - If we want to verify the exact data being entered, we can inspect it, because the widget still displays the extra white spaces, but the actual variable value is not being stored with those spaces. @Siya - I tested it on different browsers and encountered the same issue everywhere.
For now, let's keep this on hold for now and revisit it later to investigate further. Thank you both for your help and support.
@Meer Imtiyaz Ali ,
Sure, but before concluding ,I would like to address as it is before storing the value in the DB.
Have you checked whether there is any Replace or Trim function being used, or any JavaScript in the Client Action that could be removing the spaces?
In the demo OML I attached, the logic is very simple: the user enters the text, it is stored directly in the DB, and then the same value is retrieved for modification.
Could you please check the implementation once again and confirm if there is any logic that might be removing or modifying the spaces before the value is stored?And Which space you are talking start/end or middle. you can see below end space still visible in db and widget as well.