Tuesday, January 28, 2014

Usbong Update: textFieldWithAnswer and textAreaWithAnswer --> multiple answers = OK

Hi everyone,
Here's the latest update on Usbong.

Tasks accomplished:
+updated: new icon
+fixed: icon sizes (l, m, h)
+updated: Usbong Demo Tree
+added: textFieldWithAnswer and textAreaWithAnswer 
--> with multiple answers = OK 

Key Update:
As requested, it is now possible to have multiple answers
in textFieldWithAnswer and textAreaWithAnswer

How? Use double pipes (i.e. "||", which means OR)

Example:
<task-node name="textAreaWithAnswer~Who is the founder of Usbong (nickname)?Answer=Mike||mike">
<transition to="textDisplay~Correct!" name="Yes"></transition>
<transition to="textDisplay~Incorrect!" name="No"></transition>
</task-node>

Therefore, both "Mike" and "mike" are considered correct answers.
You can have as many possible answers as you want,
provided that you use "||" to separate each answer.

Another example application of this, 
besides the non-case sensitive case
is to answer a question with multiple possible answers such as:
Give an example of a primary color.
Possible answers are: red, green, and blue.

For the user to move on to the "correct" branch, 
he needs to only input one of the three.

//Special Thanks to my Japanese Studies Program (JSP) 1 student,  
Pam Llaguno for the idea.

All right. The latest .apk should be available
within a few hours after receiving this email.

For the source code, you may check out:

If you have questions, comments,
suggestions, feature requests, etc,
feel free to voice them out via:

This is all for now.

Cheers,
Mike