+ Start a Discussion

custom button

Hi All,


I have created a custom button on the opportunity object which  I need to autopopulate some certain fields.


All is working however I am really struggling to insert close date (which we want to autopopulate with today). 



Please any ponters would be helpful




here you have to indentify the control id of that close date field and set that value in the button code itself.


Are you using apex controller for the logic or javascript.


1. If you are using apex controller, in the constructor you can set the default value for the Close Date.