ui-field formula to return current time

Hi Bill -

I think I know what’s going on here.

When a new row is created, skuid appears to be applying default values specified in the action configuration BEFORE evaluating the formulas.  This means that your “Random6_Email” field is blank/empty when the default value is applied to Temp_Confirm_Email_Base_c.

Fortunately, there is a solution.  If you remove the default value from the action configuration and instead, add a “row created” event to the Add_CR_Add_Task model, in that event you can set the value of Temp_Confirm_Email_Base_c from Random6_Email.  This approach will work because the row.created event is the last thing to occur during row creation and by this point, all defaults are applied and formulas evaluated.

This does bring up an interesting chicken/egg scenario with the order of default values and formula evaluation.  I think there is something to be said for having Skuid evaluate formulas immediately upon row creation and not wait until the very end.  That said, I’m thinking there is probably good reason why they chose to do it the way that they did.  

For now, let me know if the above approach works for you to at least get your past your current issue.