You need to sign in to do that
Don't have an account?
Joey Ho
Read Only iFrame within VF page
Hi,
I have a requirement where a visualforce page with standard controller of 'Case' displays a another 'Case' record within the same page using apex:iframe however this iframe can only be read-only, i.e. links within the iframe can't be clicked.
I know that we can set the apex:page to readonly="true" but that would than stop my engineers from being able to edit the content on that VF page.
How do I just make part of the page (or specifically the iframe component) only read-only within the VF page?
Thanks for your help.
Regards.
Joey.
Hi Avi,
Thanks for the idea. I tried this and I realised that the "readonly" attribute of the page component is actually only for stopping users from executing DML operations only but doesn't really stop a user from clicking on links or buttons which make take the to another screen!
This defeats the purpose of making my iFrame a 'view only'....
Anyways, I ended up going with recreating another VF page which duplicates the CASE detail page without the buttons and links such that users can only 'view' the Case record.
Only if Salesforce had some kind of attribute that allow 'view only' option which would have saved me the effort!
Thanks for your help!
regards,
Joey.
Once you disable them user wont be able to click on the links.
Hi Avi,
thanks about. I thought about that, and that will work too but I think creating a new VF page will be more easier than writing a script for every link/button that is added to the page layout.
Thanks again for your time!.
Regards,
Joey.