You need to sign in to do that
Don't have an account?
Rahul Singh 1384
Visualforce Page like a form to save data
Hello Friends,
I am new to visualforce development,
I want to create a visualforce form in which i want a picklist field and values for picklist will be : DOC, RAR, ZIP
and a TextArea Field in which we can give comment or description
and a Save Button which will save all data of the form to the Activity Object Inside Salesforce
I have picklist field 'Filetype' with values DOC, RAR, ZIP and a TextArea Field 'Description' on Activity Object
and please do not provide any link or reference, if possible, then help me with an example,
Any help would be greatly appreciated
Thanks in Advance
I am new to visualforce development,
I want to create a visualforce form in which i want a picklist field and values for picklist will be : DOC, RAR, ZIP
and a TextArea Field in which we can give comment or description
and a Save Button which will save all data of the form to the Activity Object Inside Salesforce
I have picklist field 'Filetype' with values DOC, RAR, ZIP and a TextArea Field 'Description' on Activity Object
and please do not provide any link or reference, if possible, then help me with an example,
Any help would be greatly appreciated
Thanks in Advance
Please use this code:-
Visualforce page:-
APex controller:-
Please let me know if you have any issue
Rahul: Please mark it as a BEST SOLUTION .
Regards
Mukesh
All Answers
Here is a good example of a VF page and a controller:
http://www.salesforce.com/docs/developer/pages/Content/pages_controller_custom.htm
But if you have a custom object with some fields, you can use the standard page layout and the standard edit page to save this information, there is no need to add custom code if you just want to save some basic data, usually a visual force page + controller its when you have a custom page with some special requirements.
Here is a video (kind of old but its shows the basic) about how to create a custom object and use the pagelayout to insert data:
https://www.youtube.com/watch?v=uD5t8rCvqlE
Kindly mark this as solved if it's resolved so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.
Regards
Suraj
first you need to create fileType picklist custom field on Activity object, Because we can't add any new custom object in task, so by Activity we can add new field in Task, FileType, Task Comment,
visualforce page
Apex controller:- if you need any help let me know
PLEASE MARK AS A BEST ANSWER!!!!!!!!!
Regards
Mukesh
Thank you so much!
This is working absolutely perfect,
You have given account id statically, no problem
one more and last help i need, can you help me in showing that account's 2 field ('Name' and 'Account Number') on same VF Page.
any assistance?
Please use this code:-
Visualforce page:-
APex controller:-
Please let me know if you have any issue
Rahul: Please mark it as a BEST SOLUTION .
Regards
Mukesh