Hello!
Around a week and a half ago I had exactly the same approach for smart fields and was working, now the field appears but without the content. I now put a simple one to test and have the same result, that’s what I have:
const { collection } = require("forest-express-mongoose");
// This file allows you to add to your Forest UI:
// - Smart actions: https://docs.forestadmin.com/documentation/reference-guide/actions/create-and-manage-smart-actions
// - Smart fields: https://docs.forestadmin.com/documentation/reference-guide/fields/create-and-manage-smart-fields
// - Smart relationships: https://docs.forestadmin.com/documentation/reference-guide/relationships/create-a-smart-relationship
// - Smart segments: https://docs.forestadmin.com/documentation/reference-guide/segments/smart-segments
collection("User", {
actions: [
{
name: "Change User Status",
type: "single",
fields: [
{
field: "Status",
type: "Enum",
enums: ["BLOCKED", "UNBLOCKED"],
required: true,
},
],
},
],
fields: [{
field: 'fullname',
type: 'String',
get: (User) => {
console.log(User);
return User.firstName + ' ' + User.lastName;
}
}]
});
ps: it doesn’t even show the console log.
ps2: They are present on the .forestadmin-schema.json
As you can see I have the field, but not the content.
Context
Always used V6, just updated today to 6.4 to see if would fix with no success.
Thanks in advance!
Isadora Rebelo