Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Having a button open another PDF document or image

jrvh924
Level 3
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
dcidev
Level 8
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

jrvh924
Level 3
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