Sending a SL360 variable to a PDF
Mar 21, 2020
By
Bill Sahm
I am working on a project that requires a certificate/contract to be printed when the course is completed. I originally wanted the LMS to provide the user name within the course to be added to the certificate however had to abandon as I could not get any of the java to work. (I'm super green with Java :) ) I would however like to pass the user input field I created "MemberName" to a PDF. I'm able to launch the PDF from within SL360. That part works. I cannot figure out how to get the SL360 variable to populate on the PDF. I'm wide open to some direction.
8 Replies
Hi Bill,
Search for Matthew Bibby either on this site or through Google. I think he has a tutorial on what you are looking for.
Cheers,
Julie
Thank you Julie. I'll take a look.
Have a great day,
Bill
Julie,
I looked at that info and it seems like it may work however the site to download the PDF (widget) does not work. I've been looking into creating it in html but that too is incredibly challenging. Thank you for trying. Stay Safe.
All the best,
Bill
Hi Matthew,
Thank you for replying. I have most of the course created including the PDF. SL360 calls the PDF perfectly however I cannot figure out how to get the Name variable from SL to the PDF. I am green as it gets to java script and html. I create these courses for my volunteer fire company and I'm it. I've been taking a beginners course to Java today but every-time I get started I need to go on another EMS emergency. What specifically do you need to know? I attached the PDF I created.
Matthew,
I modified my story to just have opening slide and certificate slide. I'm attaching it here along with the output including the path to the PDF
Hi Bill,
Did you ever get this resolved? I'm trying to do the same thing. I have my PDF and I get it to come up when you click the button in the published SL, but I can't figure out how to include the username from SL into the PDF.
Peter,
Yes. I needed help from someone else in the community. I used PDFmake. It works perfectly.
Bill Sahm
Delaware City Fire Company
302.834.9336 x124 station
302.420.4440 mobile
Member of ABYC
USCG SEC DELBAY AMSC
Delaware River/Bay Fireboat Task Force
@Fireboat15
Sent from my mobile device
The part in your JS that says:
var myName = cmi.core.student_name()
Is that a name coming from your LMS or is that the name you entered in you SL slide?
This discussion is closed. You can start a new discussion or contact Articulate Support.