You need to sign in to do that
Don't have an account?
Dynamic / Conditional Button
Hello Friends!
Need help! New to VF and Apex development! I am working on exiting code to improve and meet business requirement.
The business case is when a user search in search box, he will get list of account and related information records in a table in visualforce page. One column of table, user can see a button for request to access that record details.
Right now we have on button in one column and that also html button. I want to change the button from “Request Access” to “Go to” Link [Condition: if the logged in user is owner or record shared access to that record]. How should I proceed? Should I use if condition in VF page or I should write code in controller?
<apex:pageblockTable>
<apex:column>
<input type=”button” value=”Request Access” onlick=”displaymessage(‘{!account.acc.Id}’); align=”center”/>
<apex:column>
<apex:column headervalue=”business unit” style=”----“>
{!account.acc.BU_c}
</apex:column>
Thanks and appreciation!
Arijit
the visualforce page code is like this.