You need to sign in to do that
Don't have an account?
Rakesh S
Hi All,
I have created a page for Physician__c and it has Communication History as a related list.
And it has "Log a Call" button(Custom).
when i click on "Log a Call" button then it goes to new Task page(Custom).
And this page has the following fields like Assign To, Date, Type,Reminder Date etc...
I entered all fields and save it then successfully saved and added it in communication History.
But problem is that In New Task page, i need current user as default in "Assign To" field
and it should be lookup only(it may change).
When i am using Standard button then it works fine but its not my requirement.
Please give appropriate solution for this. Let me know, If any body not understanding.
Thank you
Rakesh
How to add a user as default to "Assign To" field while creating a task
Hi All,
I have created a page for Physician__c and it has Communication History as a related list.
And it has "Log a Call" button(Custom).
when i click on "Log a Call" button then it goes to new Task page(Custom).
And this page has the following fields like Assign To, Date, Type,Reminder Date etc...
I entered all fields and save it then successfully saved and added it in communication History.
But problem is that In New Task page, i need current user as default in "Assign To" field
and it should be lookup only(it may change).
When i am using Standard button then it works fine but its not my requirement.
Please give appropriate solution for this. Let me know, If any body not understanding.
Thank you
Rakesh
Here's a working version,
Just create a new apex page, cut & paste the VF page and controller, enter in some value and save.
It should work right away,
Now, you need to add back the Date__c since I don't have that so I removed it.
And the uncomment tsk.Whatid=WhatId;
Controller
Visualforce Page
All Answers
The custom page is a Visualforce page? Standard controller? any extensions?
Thx
Thank you..
Here's a working version,
Just create a new apex page, cut & paste the VF page and controller, enter in some value and save.
It should work right away,
Now, you need to add back the Date__c since I don't have that so I removed it.
And the uncomment tsk.Whatid=WhatId;
Controller
Visualforce Page