usbong / UsbongKit

A framework for reading and displaying contents of Usbong Trees
www.usbong.ph
Apache License 2.0
2 stars 1 forks source link

textFieldWithAnswer accepts any answer to be correct #13

Closed masarapmabuhay closed 7 years ago

masarapmabuhay commented 7 years ago

Salut! I noticed that textFieldWithAnswer accepts as correcteven wrong answers. This is regardless of whether the language set is English or Filipino.

screen shot 2016-10-27 at 9 05 02 am

Could it be related to the fix you did with regard to the use of the pipe, i.e. | for multiple answers?

Merci beaucoup toujours!

chrisamanse commented 7 years ago

May I know the XML for this current task node? In the example utree, it seems to be working fine.

masarapmabuhay commented 7 years ago

Salut! Here is the XML for this task node:

<task-node name="textFieldWithAnswer~@audioName=question3~3. How do you read these kanji characters (紙, 髪, 神)?Answer=kami|Kami|かみ|カミ">
        <transition to="imageTextDisplay~correct~@audioName=correct~3~Correct!{br}Yes, the correct answer is: かみ, カミ, kami." name="Yes"></transition>
        <transition to="imageTextDisplay~incorrect~@audioName=incorrect~3~Incorrect!{br}The correct answer is: かみ, カミ, kami." name="No"></transition>       
</task-node>    

Merci beaucoup!

chrisamanse commented 7 years ago

I tested this task node in the UsbongKit-example app, and the "Yes" and "No" transitions as expected. Are you using the latest version of UsbongKit?

masarapmabuhay commented 7 years ago

Salut! Merci beaucoup pour ta réponse! I am using the one from the LIKHA-Guide. I downloaded the file on Oct. 1, 2016. Perhaps, this version that I'm using isn't synced with the latest version of UsbongKit (iOS)? Cordialement!

masarapmabuhay commented 7 years ago

C'est vrai! I was not using the updated version of UsbongKit. I have merged your translate-tasksbranch to master. textFieldWithAnswer now works, i.e. transitions to either "Yes" or "No". All is well. Merci beaucoup!