david_navigator Posted March 6, 2021 Share Posted March 6, 2021 With the TUniPDFFrame control, is it possible to control the options available to the user. For example I want to disable (and preferably hide) the Open button option so that the user can't change the PDF displayed in the form ? Thanks David Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 6, 2021 Share Posted March 6, 2021 2 minutes ago, david_navigator said: With the TUniPDFFrame control, is it possible to control the options available to the user. For example I want to disable (and preferably hide) the Open button option so that the user can't change the PDF displayed in the form ? Hello, ... 1 Quote Link to comment Share on other sites More sharing options...
david_navigator Posted March 6, 2021 Author Share Posted March 6, 2021 Brilliant. Thank you. I think I must have had search fatigue as I'd previously searched both the forums & Wiki and didn't see this post. 1 Quote Link to comment Share on other sites More sharing options...
david_navigator Posted March 6, 2021 Author Share Posted March 6, 2021 @Sherzod of course, this just hides the button from the user but they can re-initialise it by changing the Style through their browsers DevTools. Can one use a similar technique to redirect the click event ? Something like UniSession.AddJS (UniPDFFrame1.JSName + '.iframe.contentWindow.document.' + 'getElementById ("openFile").onclick = ""'); Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 6, 2021 Share Posted March 6, 2021 Need to check. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.