I’m implementing from @Choofa in his tutorial here , I am very happy and grateful for this tutorial to using chatview with firebase databae , I have tried it and it worked well, then I tried to give unusual input in the form of multiline in the Text Input Box by typing 1 character and then enter and add 1 more character,
after the send button is pressed, the CSV list error notification comes out expecting to input 1 line but I give multiline.
like the screen shoot below.
It will happen when in Text box input have multiline character are detected,
I trying find the possible way to prevent this for happening .
If I give text like this " this is no problem because this is only one row" it will become Ok
but if I give Text box input with one two three
it will become error because “LIST FROM CSV ROW TEXTS” it must be one row not multiple row
There you are. Found the mistake. Your Firebase is storing the values as row but you are trying to select by considering it as a list. You cannot use select list item list.
So one thing use replace all text \ and split text at / by 5 and try
Please try to send data to firebase in single line.
To do this, add this block in when text on changed and check in firebase whether it is sending as single line or not. If it is sending as single line mean no problem. You know then how to proceed
If single line it’s not problem it always ok, but behavior change if you give the carriage return character in this case \n , if you have messenger like whatsapp or anything. it is possible to put message like this
This is the message
instead " this is the message" ,