function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
WPCMSWPCMS 

SF Button: How to insert Today()

I want my button to default todays date in a date field

 

When I do


&00N80000003BpHg={!NOW()}

or

&00N80000003BpHg={!TODAY()}

 

Nothing is populated.

 

Please let me know what I need to do.

 

Thank you in advance

 

Best Answer chosen by Admin (Salesforce Developers) 
kyle.tkyle.t

This is the formula for a button I created in one of my dev environements that is working.  It creates a new account and inserts today's date into a date field.

 

/001/e?00NA0000001V7qN={!TODAY()}

 

Hopefully this helps... though you might be past this step already.