HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... Text Input Issue
Text Input Issue
  View type:
Hi,

I am using a text input field so that if the user enters a certain value then a green popup box should appear. Otherwise, a red popup box should appear.

However, CourseLab considers blank/null entries, i.e. only cliking inside the text input field, as a trigger for the red popup box.

I don't want this to happen, actually.

For your convenience, here's my script:

On Leave Field
IF(Condition='$OBJ_23.value=="you"')
DISPLAY(Object='correct',Display='Show',Effect='Object',Duration='0')
IF(Condition='$OBJ_23.value!="you"')
DISPLAY(Object='incorrect',Display='Show',Effect='Object',Duration='0')

Note: OBJ_23 is the text input field
"correct" is the green popup box
"incorrect" is the red popup box

Thank you.
 
Just a wild guess:
What happens if you change the second 'if' to:
IF(Condition='$OBJ_23.value!="you"')
(space)IF(Condition='$OBJ_23.value>""')

I mean: if the input field is 'greater than nothing'

?? [:D]
 
 
Nothing.

I still have the same problem.[:)]
 
 
 
Then maybe try
IF(Condition='$OBJ_23.value==""')
MSGBOX(Text='Please enter your answer');
[:)]
 
 
 
 
Now i am getting two messages:

1. the red popup box
2. the "please enter your answer" msgbox

[:confused:]
 
 
 
 
 
Now I did it...

On Leave Field
IF(Condition='$OBJ_23.value=="you"')
DISPLAY(Object='correct',Display='Show',Effect='Object',Duration='0')
IF(Condition='$OBJ_23.value!="you"&&$OBJ_23.value!=""
DISPLAY(Object='incorrect',Display='Show',Effect='Object',Duration='0')

Thank you all [:cool:]
 
 
 
 
 
 
[:confused:]to validate that only you can advance through each text input, press ENTER or TAB, but with an advanced order

thanks
 
 
 
 
 
 
[:confused:]to validate that only you can advance through each text input, press ENTER or TAB, but with an advanced order

thanks
 
 
 
 
 
 
[:confused:]to validate that only you can advance through each text input, press ENTER or TAB, but with an advanced order

thanks
 
 
 
 
 
 
[:confused:]to validate that only you can advance through each text input, press ENTER or TAB, but with an advanced order

thanks
 
 
 
 
 
 
[:confused:]to validate that only you can advance through each text input, press ENTER or TAB, but with an advanced order

thanks
 
 
 
 
 
 
[:confused:]to validate that only you can advance through each text input, press ENTER or TAB, but with an advanced order

thanks
 
 
 
 
 
 
[:confused:]to validate that only you can advance through each text input, press ENTER or TAB, but with an advanced order

thanks
 
 
I can help to authenticate a user input password and enter key move to the next "hidden input" after entering the username in the "text input"

[:)]
 
 
I can help to authenticate a user input password and enter key move to the next "hidden input" after entering the username in the "text input"

[:)]
Subject:
Message options
No additional options