function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jamesGreen.ax691jamesGreen.ax691 

Save Button in webpage is not displaying

Hi,

 

I have created a webpage in visualforce,  a very simple page infact.

Take a look at the web page. http://funcode-developer-edition.ap1.force.com/

 

There used to be another save button in the code,  it will be diaplayed for the admin who is creating the page,

but it is not displaying in the webpage for the end user...

Please help me out in this.

Best Answer chosen by Admin (Salesforce Developers) 
aballardaballard

If the save button is not dispalying it probably means the user does not have update access to the custom object that the page updates.

All Answers

NaishadhNaishadh

check your salesforce site page profile.

jgreen.564jgreen.564

thanks for the reply ..

 

the problem is we have created a visualforce page and used this code

<apex:commandButton action="{!save}" value="Save" id="theButton"/>

but the data entered is not being saved ,,,pls help us out

NaishadhNaishadh

paste your code so that i can check.

jgreen.564jgreen.564

 

the sampe code is here

    <apex:page standardStylesheets="false" showHeader="false" sidebar="false" standardController="ONE__c" recordSetVar="products">

    <apex:stylesheet value="{!URLFOR($Resource.styles, 'styles.css')}" />

    <h1>Contact Management System</h1>

    <apex:form >

    <apex:dataTable value="{!products}" var="pitem" rowClasses="odd,even">

       <apex:column headerValue="Facility Name">
       <apex:outputField value="{!pitem.Facility_Name__c}"/>
       </apex:column>
       <apex:column headerValue="Facility Name_Edit">
       <apex:inputField value="{!pitem.Facility_Name__c}"/>
       </apex:column>
       
       <apex:column headerValue="Phone Number">
       <apex:outputField value="{!pitem.Phone__c}"/>
       </apex:column>
       <apex:column headerValue="Phone Number_eidt">
       <apex:inputField value="{!pitem.Phone__c}"/>
       </apex:column>
       
       
    </apex:dataTable>



    <br/>
 <b>   <apex:commandButton action="{!quicksave}"  value="Update" /> </b>


    </apex:form>


    </apex:page>

 

the problem is with command button

 

WesNolte__cWesNolte__c

Hey

 

Please post your apex code too. And the site URL you specified doesn't seem to work.

 

Wes

aballardaballard

If the save button is not dispalying it probably means the user does not have update access to the custom object that the page updates.

This was selected as the best answer
WesNolte__cWesNolte__c

Ah yes this is correct, I didn't notice that you're using a standardcontroller. If the user does not have write access to the object in question, they won't see the button.

 

Wes

SwapnilSwapnil

I had the same problem, i created a new Object with some input field and the fields were not displaying. This was because the user did not had access to modify it. So just provide access to your save button for that user and it should work.

SwapnilSwapnil

I had the same problem where I created a new object and the input field was not displaying. I later fugured out that the user I was logged in did not have update rights to that filed, changed the rights and it worked. So just try giving the access to that user and it should work.