Hello guys,
I ran into a problem and no matter what I did, I couldn't find a solution. I'm trying to develop a content where the user is asked a question and after a while I want them to remember the information given for that question.
If the user writes a response longer than 50 characters real-time while entering the response in the response field, I want to make the response go one line.
I was able to do this with the WWRAP flag feature, but even if the user types a character, the cursor immediately goes to the bottom line. I want to prevent this.
As soon as the user reaches 50 characters while typing the reply, I want to make sure that the cursor goes down to one line and writes the reply.
In other words, as soon as the user reaches 50 characters, I want to enable WWRAP in the code I shared below. How can I do that?
TEXT* retention_name_txt =
{
pos_x = 70;
pos_y = 180;
layer = 11;
red=0;
green=0;
blue=0;
font = "Calibri#30";
string(retention_name_str);
flags = FILTER /*| WWRAP*/;
size_x=1800;
}