Hello I'd like to create a specific default date for the Expected Close date required field in Opportunities.
Any idea? I am an extreme newbie, so please detail all steps and files to edit.
thank you
Hello I'd like to create a specific default date for the Expected Close date required field in Opportunities.
Any idea? I am an extreme newbie, so please detail all steps and files to edit.
thank you
Hi
Use view.edit.php to fill default value for the fields in edit view.
Copy modules\Opportunities\views\view.edit.php to custom\modules\Opportunities\views\view.edit.php and make the changes.
thanks for your response, ok I copied the file and am ready to edit...
What is the syntax for creating a default value in the view.edit.php file? I don't see any other default values in this file that I can copy the syntax
thank you
Add a small script to the js section in the view.edit.php
var today = new Date();
document.getElementsByName('date_closed')[0].value = '0'+today.getMonth()+'/0'+today.getDay()+''+today.getFullYear();
you need to work on the date function to get proper format of the date to be filled in the date closed section.
-Sandeep Lakshmi
Be hungry!! Be Foolish!!!
Thanks Sandeep! I've made this work. You've saved me once again!
You have my vote for President if you choose to run.
I am from INDIA and i cannot do that. anyways many thanks for your appreciation!!!
-Sandeep Lakshmi
Be Hungry!! Be Foolish!!!
I must be stupid, but didnt work for me
where exactly should i insert the "today" lines of code? i tried few places but no luck...
thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks