Setting Default Date to Today on Field Editor Component

  • 1
  • Question
  • Updated 4 years ago
  • Answered
The meeting date field below needs to have Today's date by default and allows the user to adjust. What's the best way to meet this requirement?  Do I use a Field Renderer Snippet?

Photo of Peter Herzog

Peter Herzog

  • 1,664 Points 1k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
If this form is built on a "new event" model you can add a condition to that model that makes the meeting date use the specific date value "Today"  This will prepopulate your form.

 
Photo of Peter Herzog

Peter Herzog

  • 1,664 Points 1k badge 2x thumb
This is for a standard date field on a custom object - not the event object.  The condition suggestion doesn't appear to work.  Do I need to use a snippet to set this?
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Very strange.  The condition described above should populate today's date in the new record.  This feature is merely limited by field metadata,  not by the object you are using.  If it is a date field on a custom object it shoudl work.

Can you make sure the field is editable?  Can you make sure you have the right field in your condition and in your page?  Are they both in the same model?   (Yes, Im grasping for straws..)  

If nothing works maybe you can give us login rights and we can take a look.  
Photo of Peter Herzog

Peter Herzog

  • 1,664 Points 1k badge 2x thumb
Oh! Sorry! I should've mentioned that I want it to display today's date on the UI. So, when the user goes to create the record it's already pre-filled with today's date.
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Peter - the solution I outlined last week should pre-populate today's date in the UI, and allow the user to override it.  Can you let us know what is happening when you try to apply that condition to the model that is creating the new form? 

Thanks.