Creating Dropdown-Controlled Fields
Osmos Uploaders now have support for dropdown-controlled fields and advanced validation functionality. This section is meant as an overview of these new features as well as a guide for setting them.
Setting a field as dropdown-controlled can be done by setting the `validOptions` attribute of the schema definition for the field in the code snippet used to embed the uploader on your page. Here’s an example of a code snippet for a dropdown-controlled field:
{
name: 'paymentType',
displayName: 'Payment Type',
description:
'The medium of payment which was used to complete the transaction',
validOptions: ['cash', 'credit', 'debit', 'paypal'],
},
When using the Osmos Uploader, users will be presented with a dropdown containing the provided set of options to pick from when mapping their data for this column:
Dropdown selector within your Uploader
​
Copy link