How to wire the Smart Action value function result to the Fields

Hello guys!

I’m trying to figure out how to wire up the Smart action values function result to a field with an Enum field

This is my prototype:

      name: 'Action header name',
      type: 'single',
      endpoint: 'forest/actions/smartactionname',
      fields: [{
        field: 'FieldName',
        type: 'Enum',
        enums: [],
        isRequired: true,
      values: (context) => {
        return context.somedata

Is there a way to wire up the data to the field?
Thanks in advance.


Using values: has been deprecated.

You can find more info in the release note:

One more exemple here:

I’ve added this to the v8 upgrade and it was working like a charm, thanks @Guillaume_Deslandes

1 Like