I would like to be able to get the current value from a form input without having to call the field by name when doing a calculation within Field Maps Form Calculation profile.
Take the following example that is calculating on the form input "DateTimeCompleted":
var current_datetime = Now()
var f_name = "DateTimeCompleted"
var exist = $feature[f_name]
if (!IsEmpty(exist)){
return exist
}
return current_datetime
Instead of calling "DateTimeCompleted" it would be useful to use a contextual function to get the existing value of from the field that is getting calculated.
This would make it easier to write generic Arcade functions that can be quickly re-used.