High Definition eLearning
Welcome guest, is this your first visit? Create Account now to join.
  • Login:

Welcome to the Lectora and CourseMill Forums

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jul 2005
    Location
    Sydney Australia
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Remove middle name from AICC_Student_Name

    Hi there

    Does anyone know how to remove the middle name from displaying from the AICC_Student_Name variable.
    We store a users payroll number in the middle name field in our Saba LMS.
    I have used Ben Pitman's code to successfully reverse the name from AICC_Student_Name but it now appears as David 70837833 HAYNES.

    Thanks
    David

  2. #2
    Member
    Join Date
    Jul 2005
    Location
    Sydney Australia
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I Figured it out, here is the Javascript code:

    JavaScript:
    function reverseName(){
    var temp = AICC_Student_Name.getValue().split(" ");
    return temp[1] + " " + temp[0];
    }


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Lectora and CourseMill are registered trademarks of Trivantis Corporation, Camtasia and Snagit are registered trademarks of TechSmith Corporation and
Flypaper is a trademark of Flypaper Studio. Camtasia and Snagit are used with the permission of TechSmith Corporation.
Copyright © 1999-2012 Trivantis Corporation Inc. All rights reserved.