Add fields destined to the create form
Add fields destined to the create form
Add smart fields that will be used as input fields in the form
const { collection } = require('forest-express-sequelize');
collection('lots', {
actions: [],
fields: [
{
field: 'newOwnerFirstName',
type: 'String',
},
{
field: 'newOwnerLastName',
type: 'String',
},
{
field: 'newOwnerEmail',
type: 'String',
},
{
field: 'newBuildingName',
type: 'String',
},
{
field: 'newBuildingNumber',
type: 'String',
},
{
field: 'newBuildingAddressLine1',
type: 'String',
},
{
field: 'newBuildingCentralHeating',
type: 'Boolean',
},
],
segments: [],
});Catch the input at the route level
PreviousSort by smart field that includes value from a belongsTo relationshipNextAdd validation to a smart field edition
Last updated
Was this helpful?