Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • #430583 Score: 0
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    355 pts
    @timk

    You can use any of the Scorm/AICC variables, the name should be the easiest. The solution only checks if there is a name, it is not really using it, is it?

    You can also try with AICC_Lesson_Status. AICC_Lesson_Status can either be “incomplete”, “completed”, “passed” or “failed”. So you can use 4 conditions to check for these values and it should do the same as AICC_Lesson_Status does not exist in the HTML output.

    #430594 Score: 0
    Profile photo of Therese Michael
    Therese Michael
    Member
    beginner
    intermediate
    curious george
    wise owl
    friend finder
    contributor
    picture perfect
    1 pt
    @tmichael9734

    Thank you Tim.  You’re right, the name search is the easiest.  I may keep the AICC name.  If you don’t mind I’ve another question.  I’ve an entry field and I want to limit the users’ input to Alpha letters only.  Is there a way or Java Script to do that?

    Many many thanks,

     

    #430790 Score: 1
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    355 pts
    @timk

    I’m no expert for regular expressions, but I attached a library object that seemed to work.

    This post has received 1 vote up.
    Attachments:
    1. Entry_A-Z.zip
    #430815 Score: 0
    Profile photo of Therese Michael
    Therese Michael
    Member
    beginner
    intermediate
    curious george
    wise owl
    friend finder
    contributor
    picture perfect
    1 pt
    @tmichael9734

    Thank you Tim.  It works! I typed letters and it did accept them.  When I typed numbers and special characters it didn’t go through.  Thank you so much, that was a big headache for me!

    #443210 Score: 0
    Profile photo of Ciaran Whelan
    Ciaran Whelan
    Member
    beginner
    intermediate
    curious george
    picture perfect
    friend finder
    wise owl
    contributor
    @cwhelan2537

    Hi Tim, I have been trying to use your script to display the Student name (first last). I understand the difference of the script if I am using seamless or not for example:

    Seamless Play turned on
    var username = parent.AICC_Student_Name.getValue().split(“,”);
    parent.Varlastname.set(username[0]);
    parent.Varfirstname.set(username[1]);

    Seamless Play turned off
    var username = AICC_Student_Name.getValue().split(“,”);
    Varlastname.set(username[0]);
    Varfirstname.set(username[1]);

    However when I publish this I see on the LMS

    Hi ~~~null~~~ Michael Collins

    I am unsure why I am seeing the ~~~null~~~

    #443272 Score: 0
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    355 pts
    @timk

    “~~~null~~~” is the value of an empty Lectora variable… but I don’t know how this would appear in your string.

    Can you share the AWT?

    #443291 Score: 0
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    355 pts
    @timk

    I tested the script in Lectora 18.2.2 and moodle and it worked. Do you have any other actions to modify the variables or additional custom script?

    #443486 Score: 0
    Profile photo of Ciaran Whelan
    Ciaran Whelan
    Member
    beginner
    intermediate
    curious george
    picture perfect
    friend finder
    wise owl
    contributor
    @cwhelan2537

    Hi Tim, I will upload here. Just seen your messages now. I only have used your test to display the name by pushing the big blue button.

     

    • This reply was modified 5 months, 4 weeks ago by Profile photo of Ciaran Whelan Ciaran Whelan.
    Attachments:
    1. Title-1.zip
    #443512 Score: 0
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    355 pts
    @timk

    I tested your sample in moodle. It should work when you remove the “Var” before AICC_Student_Name:

    var username = AICC_Student_Name.getValue().split(", ");
    Varlastname.set(username[0]);
    Varfirstname.set(username[1]);
    #443518 Score: 0
    Profile photo of Ciaran Whelan
    Ciaran Whelan
    Member
    beginner
    intermediate
    curious george
    picture perfect
    friend finder
    wise owl
    contributor
    @cwhelan2537

    Hi Tim,

    Thank you very much for the reply. I have removed the Var in front of the AICC_Student_Name and now shows my surname, but with ~~~null~~~ as my first name. I have included the screenshot of my user page including popup, JS and action.

    • This reply was modified 5 months, 4 weeks ago by Profile photo of Ciaran Whelan Ciaran Whelan.
Viewing 10 posts - 16 through 25 (of 25 total)

You must be logged in to reply to this topic.