Expand my Community achievements bar.

Having a button open another PDF document or image

Avatar

Level 3

Hello,


I have been trying to get the app.openDoc("filename"); to open a different PDF document with no luck.   We currently have our employees fill out a form while completing a tour of a store.  What I would like to do is have the employee click a button to open a PDF of a document that would show what an acceptable uniform would be.  I have tried using this for both a PDF and a jpg image, neither of which have worked.   I tried every variation and thing I have read online, but I am now lost... Any help?

Thanks,


Justin

2 Replies

Avatar

Level 8

Maybe your filename path is off? Try putting the pdf in a folder called 'temp' on your c drive and use:

app.openDoc("/c/temp/mypdf.pdf");

Just to see if it works.

Kyle

Avatar

Level 3

Kyle,


Thanks for getting back to me.  For some reason that worked.  I also changed the name of the file to something smaller... I think I was just looking WAY too far into this...


Thanks!

Justin