2

This is my public site displaying list of records from a custom object.

As you can see the delete input checkboxes are not getting rendered but they are rendered as expected within Salesforce.

Can someone explain this odd behavior ?

Screenshot within Salesforce

enter image description here

This is my VF Page.

<apex:page standardcontroller="Expense__c" extensions="ExpenseController"  sidebar="false" showHeader="true" showChat="false" recordSetVar="exp" >
<script src="../../soap/ajax/30.0/connection.js" type="text/javascript"></script>
<apex:form >
<!--<apex:panelGrid columns="20">-->
<apex:pageMessages />
<apex:commandLink action="{!previous}" rendered="{!isTwenty}">Previous</apex:commandLink>
<tab/><tab/>
<apex:commandLink action="{!next}" rendered="{!isTwenty}">Next</apex:commandLink>

<!--</apex:panelGrid>-->

<apex:inlineEditSupport />

<apex:pageBlock title="List of Expenses">
<apex:pageBlockTable value="{!exp}" var="item" >
<apex:column headerValue="Delete" width="20px">
<apex:inputCheckbox onchange="alert('Are you sure ?');" value="{!item.IsDeletedFromUI__c}" rendered="true"  />
</apex:column>

<apex:column headerValue="Date" >
<apex:outputField value="{!item.Date__c}" />
</apex:column>

<apex:column headerValue="Type">
<apex:outputField value="{!item.Type__c}"/>
</apex:column>

<apex:column headerValue="Amount">
<apex:outputField value="{!item.Amount__c}"/>
</apex:column>
<apex:column headerValue="Comments">
<apex:outputField value="{!item.Comments__c}"/>
</apex:column>
</apex:pageBlockTable>
<p>Sum of All Expenses : Rs {!SumOfAllExpenses}</p>
</apex:pageBlock>
<apex:commandButton action="{!save}" value="Save" id="theButton1" />
<!--<apex:commandButton action="{!custom_delete}" value="Delete" id="theButton2" />-->
<!--<apex:commandButton value="Total" id="theButton2" onclick="alert('Deleting the expense...')"/>-->
<apex:pageBlock title="Enter Password for Deletion: " >
<apex:inputSecret value="{!pwd}" />
</apex:pageBlock>

</apex:form>
</apex:page>
2
  • 1
    Check the Field level security of that field for guest user and make sure its not read only.It should be visible. Apr 20, 2014 at 3:17
  • 1
    Hi. Thanks for the pointer. That was the issue. Can you post this as answer so that I can accept it ?
    – Varun
    Apr 20, 2014 at 3:55

1 Answer 1

2

Check the Field level security of that field for guest user and make sure its not read only.It should be visible

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .