Conditionally Setting Default Values in Foundry Action Forms

Is it possible to conditionally set a default value for a field based on the value of another field in the form? Specifically, I have a createObject Action form where a user can optionally select an object reference from a dropdown. If they select an object, I’d like a different field to default to a property from the selected object. If they don’t select an optional object, I would like that separate field to default to a static value. eg. If fieldA is selected, default fieldB to fieldA.propertyVal. If fieldA is left blank, default fieldB to 0. The Default Value section of the Action parameter only allows you to select one of those options but not both.

Yes this is possible! You can use an override condition to pull the default value using the optional Object Reference when present and then rely on a standard, static default otherwise.

1 Like