Not applicable

HI @Dotychczas ,

Where is the filter? can you share a screenshot here please and also this is part of which workspace?

 

Dotychczas
Mega Guru

 

It's on a custom page that we created. Here "Default value" script:

Dotychczas_0-1704805840551.png

I need return value in here and I don't know what the format should be? Is format of the data returned in script depends on where filter is being placed?

brandon5
Tera Contributor

We opened a hi ticket on this. they provided this format and it works

 

1. Using static default value:

return [{
available : true,
id : "dfsdf7sd6f7sdf6dsf",
label : "Option 1"
},
{
available : true,
id : "7657765fsdfsdfsdf567",
label : "Option 2"
}];

 

Monika2
Giga Guru

Did you find the solution for this? I have a similar requirement

User5416
Tera Contributor

You can use the format below to set up the Default value. Below is an example of a Default value with a data source as the User table:

 

function evaluateProperty({
    api,
    helpers
}) {
    return [{
        "available": true,
        "empty": false,
        "id": "62826bf03710200044e0bfc8bcbe5df1",
        "label": "Abel Tuter",
        "unknown": false
    }];
}
 
Note: The Filter type is Single Select.