Hi There. I've created an "exit course" button on the final slide of our module. This is linked to a trigger to exit the course. We will be hosting this training on our own custom-built LMS. The problem we are facing is, we ONLY want this specific "exit course" button to appear on the mobile version of the course - not the desktop version. Is there a way to do this? We are using the latest version of Storyline 3. Any help would be great! Thanks!
Thanks guys for sharing. Michael not sure the thread you shared is what I am looking for, but it is still good to know nonetheless. I am trying to find a way (possibly using javascript) to only show a specific layer when viewed on a mobile device. Does anyone know of any triggers or javascript that we can use to make this happen? Thanks.
Storyline itself does not provide any feedback to us as to the type of device being used to view the content, but you CAN use the code provided in that other thread to do exactly that. Let me know if you need any help.
Hi Michael Anderson! I can use all the help I can get. How can I use the code you mentioned to only show a particular layer (or button) once the course is played on a mobile device? Mind you, this will be hosted in a custom LMS as well. Thanks!
Yes. I downloaded the files and I am having difficulty finding the right mix of triggers so that a certain layer or button will only show in mobile mode. The javascript you shared with Amy just seems to determine which device is being used. It doesn't actually dictate which layers or objects should appear on desktop vs. mobile applications. That doesn't really help me with my problem unfortunately. Again, maybe this javascript can be used that way, but I'm not an expert on JS, so I will need a bit of assistance to get the right triggers in place to get the behavior I want. Any help would be great.
The last line in her code sets a true or false variable in Storyline called "clientIsIphone", so make sure you create that variable in your course. You can base your layer triggers on the value of that variable. Please test on your intended devices as we might need to add more device checks to the criteria.
7 Replies
Maybe this older thread here provides some ideas.
Thanks guys for sharing. Michael not sure the thread you shared is what I am looking for, but it is still good to know nonetheless. I am trying to find a way (possibly using javascript) to only show a specific layer when viewed on a mobile device. Does anyone know of any triggers or javascript that we can use to make this happen? Thanks.
Storyline itself does not provide any feedback to us as to the type of device being used to view the content, but you CAN use the code provided in that other thread to do exactly that. Let me know if you need any help.
Hi Michael Anderson! I can use all the help I can get. How can I use the code you mentioned to only show a particular layer (or button) once the course is played on a mobile device? Mind you, this will be hosted in a custom LMS as well. Thanks!
Amy Lewis posted a sample .story file in the other thread here https://community.articulate.com/discussions/articulate-storyline/is-there-a-way-to-know-what-device-is-being-used-to-view-a-course . She modified my solution a little and made it easier to use, Check that out and let me know if you need further help.
Yes. I downloaded the files and I am having difficulty finding the right mix of triggers so that a certain layer or button will only show in mobile mode. The javascript you shared with Amy just seems to determine which device is being used. It doesn't actually dictate which layers or objects should appear on desktop vs. mobile applications. That doesn't really help me with my problem unfortunately. Again, maybe this javascript can be used that way, but I'm not an expert on JS, so I will need a bit of assistance to get the right triggers in place to get the behavior I want. Any help would be great.
The last line in her code sets a true or false variable in Storyline called "clientIsIphone", so make sure you create that variable in your course. You can base your layer triggers on the value of that variable. Please test on your intended devices as we might need to add more device checks to the criteria.
This discussion is closed. You can start a new discussion or contact Articulate Support.