You need to sign in to do that
Don't have an account?
JAVA SCRIPT / JQuery - Allow users to Select some Checkboxes
I know this is achieveable through JAvascript / Jquery but don't know how?
On this visualfore page I have a table of records with a checkbox next to each record.
I want all users to see all records but only be able to select the records the user owns.
i.e/
IF(Userinfo.userid() != ownerid)
{
disable checkbox;
} else {
enable checkbox;
}
So if a user sees 5 records but owns only 3 of those records, Show all 5 records to the user but have the checkboxes for only 3 of the records enabled. Checkboxes on the other two records will be disabled.
<apex:page controller="MyAccountListCntrlr" tabStyle="Account"> <apex:form > <apex:pageBlock title="Account List"> <apex:pageBlockButtons > <apex:commandButton value="Show Selected Accounts" action="{!displaySelectedAccountNumbers}"/> </apex:pageBlockButtons> <!-- ACCOUNT LIST --> <apex:pageBlockTable value="{!acctList}" var="acctWrapper"> <apex:column > <apex:inputCheckbox value="{!acctWrapper.isSelected}"/> </apex:column> <apex:column value="{!acctWrapper.cAccount.AccountNumber}"/> <apex:column value="{!acctWrapper.cAccount.Name}"/> </apex:pageBlockTable> </apex:pageBlock> </apex:form> </apex:page>
Something like this might work:
All Answers
Something like this might work:
Much appreciated.