You need to sign in to do that
Don't have an account?
sayko
How do I make a SOQL query that allows me to Add/Remove/Edit values in Custom Object Fields?
I have created a custom object, students__c, and several related fields e.g. Name__c, Year__c, etc. I now wish to create a VF page and a form which will allow me to add new entries for this custom object. How should I go about it? Do I have to have a custom class here? I would also like to display a list of already enrolled students beneath the form.
I trust you are doing very well.
Below is the sample code which I have tested in my org and it is working fine. Kindly modify the code as per your requirement.
Visualforce:
Controller:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in future.
Thanks and Regards,
Khan Anas
All Answers
I trust you are doing very well.
Below is the sample code which I have tested in my org and it is working fine. Kindly modify the code as per your requirement.
Visualforce:
Controller:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in future.
Thanks and Regards,
Khan Anas