You need to sign in to do that
Don't have an account?

Visual force page?
Now I created new page having sections of Account and Task and created two buttons and now the conditions are " if you click on Save with task button it should create record in account and display in related list (Open Activities) and if you click on Save Without task button it should create Account record but not Task (Open Activities) record."
How will I achieve this functionality?
How will I achieve this functionality?
I have created VF page & controller class for you & displayed two button on custom page savewithtask & savewithouttask. When you will fill account & task information and click on savewithtask button. Account will be created with task.
If you will fill only account information and click on savewithouttask button thenn account will be created without task.
Please use vf page & class.
If you want to more fields for account & task information then add your fields in VF page.
Controller class:
VF Page:
If you have any query please let me know.
If this post solves your problem kindly mark it as solution.
Thanks,
Arvind Kumar
All Answers
I have created VF page & controller class for you & displayed two button on custom page savewithtask & savewithouttask. When you will fill account & task information and click on savewithtask button. Account will be created with task.
If you will fill only account information and click on savewithouttask button thenn account will be created without task.
Please use vf page & class.
If you want to more fields for account & task information then add your fields in VF page.
Controller class:
VF Page:
If you have any query please let me know.
If this post solves your problem kindly mark it as solution.
Thanks,
Arvind Kumar