Use merge syntax when setting default dates

  • 1
  • Idea
  • Updated 2 months ago
  • Planned
This one's troubled me for years!

When you set a default date (e.g. on new row action) you can't just enter some merge text to reference a date from another model - you can only select a specific date or a relative date. It'd be so lovely if I could just write `{{$Model.MODELNAME.data.0.SOMEDATEFIELD}}` whereas instead I have to overwrite it in the XML.

Cheers!

Louis
Photo of Louis Skelton

Louis Skelton

  • 4,878 Points 4k badge 2x thumb

Posted 2 months ago

  • 1
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Official Response
Louis, we have something even better --- in the Spark release, you will be able to use "Field from another Model" or "Result of Formula" to populate values for Defaults on "Create new Row" actions, which should make it really easy to just select another Model and select a Date / Datetime field from that Model, and have its value used as a default at runtime.