679
Views
4
Comments
Input text with Space
Question

I have an Input of a text, the variable linked to it is also a text type, I noticed that if you insert a text input in the widget and add few space in the right side like this:


On save those spaces are automaticaly ignored/trimmed. 

Question is there a way to not ignore them? thank you

2019-12-06 08-26-53
Jorge Rodrigues

Hello Norman,


The value is saved in the database like you have typed.


Jorge Rodrigues

UserImage.jpg
norman in

Jorge Rodrigues wrote:

Hello Norman,


The value is saved in the database like you have typed.


Jorge Rodrigues

rly? thats strange because when i was debugging and checking the values it was like this:   there was no space at the end, and there was no trimming action either


2012-08-24 04-32-41
Juan Carlos Elorde

Jorge Rodrigues wrote:

Hello Norman,


The value is saved in the database like you have typed.


Jorge Rodrigues

Agree on this one as well. I haven't done actual test but I know it does this. Unless you trim it.


2022-09-15 15-26-02
Leonardo Nascimento

Hi.

Yes, Like said above the value is saved in the database like you have typed.

To ignore leading and trailing spaces, you can use the built-in function (Trim) Trim (String) function, which will remove the space from the string.



I hope this help you

Regards,

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.