Use merge syntax when setting default dates

  • 2
  • Idea
  • Updated 1 year 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

  • 5,626 Points 5k badge 2x thumb

Posted 1 year ago

  • 2
Photo of Zach McElrath

Zach McElrath, Employee

  • 54,106 Points 50k 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.