You need to sign in to do that
Don't have an account?
sudhirn@merunetworks.com
Visual force page readonly
Hi,
I want to make readonly to visualforce page for some profiles in salesforce please suggest me how to make readonly
Profile name ( GHC, Program Admin, Finance) Only Progam Admin should be able to editable other profiles must be read only
Thanks
Sudhir
I want to make readonly to visualforce page for some profiles in salesforce please suggest me how to make readonly
Profile name ( GHC, Program Admin, Finance) Only Progam Admin should be able to editable other profiles must be read only
Thanks
Sudhir
There is a readOnly attribute in apex:page tag, but you cannot put any condition on like mode='edit' or mode='readOnly', it only accepts true or false values.
So, we cannot make the Visualforce Page read-only or editable according to Profile Name.
But we can make the fields read-only or editable on the Visualforce Page according to the Profile Name.
For achieving this, you can create two pageBlockSections.
Put rendering condition on both of them.
In one pageBlockSection put the inputFields and in another outputFields.
I have written a dummy Page and Controller. Please see below:
Please let me know if this helps.
If yes, please mark the Question as Solved.
Thanks and Regards,
Anirudh Singh