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
yaswanth kumaryaswanth kumar 

how to insert a record into standard or customs objects on loading visualforce page

Hargobind_SinghHargobind_Singh
Create a void method that inserts the contact, and specify that method in "Action" parameter for VF Page. 

e.g.:

<apex:page controller="YourController" action="{!yourActionMethod}">


Jacob CooperJacob Cooper
Can I use batch apex to move my records from one custom object record to another record? I've got two custom objects as studentcalculuscopy and studentcalculus: https://domyhomeworkonline.net/do-my-calculus-homework.php for my custom homework at Apex Academy. Homework tasks: Quarkus and TowardsDataScience.