Simplio3D

Contact Forms

Build and manage contact/quote request forms with configurable fields.

List Form Fields

const fields = await client.getFormFields('proj_123');
fields.forEach(f => {
  console.log(f.type, f.label, f.required ? '(required)' : '');
});

Create Form Field

const field = await client.createFormField('proj_123', {
  type: 'dropdown',
  label: 'Budget Range',
  required: true,
  width: 'half',
  options: [
    { id: '1', label: 'Under $1k', value: 'under-1k' },
    { id: '2', label: '$1k - $5k', value: '1k-5k' },
    { id: '3', label: '$5k - $10k', value: '5k-10k' },
    { id: '4', label: 'Over $10k', value: 'over-10k' }
  ],
  allowOther: true
});

Continue reading