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
AK_SmithAK_Smith 

run action onload SF1

Hello!
How to run action="{!save}" and oncomplete="reload()"  automaticly on VF page in SF1 without apex:commandButton?
 
<apex:page standardController="Project__c" id="page" docType="html-5.0">

<script>
function  reload(){
   sforce.one.back(true);
}
</script>

<apex:form id="form">

<apex:commandButton action="{!save}"  value="Save" oncomplete="reload()"/>
                      
</apex:form>

</apex:page>

Thank you!
Naveen Kumar B H(bhns)Naveen Kumar B H(bhns)
Hi AK_Smith

Go through the below link. it may help you to solve your requirement. 

http://www.jitendrazaa.com/blog/salesforce/lightning-data-services-standard-controller-for-lightning-components/

Let me know if you need more help.

Regards
Naveen
AK_SmithAK_Smith
that is way too complicated for me