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:
1
{
2
name: 'paymentType',
3
displayName: 'Payment Type',
4
description:
5
'The medium of payment which was used to complete the transaction',
6
validOptions: ['cash', 'credit', 'debit', 'paypal'],
7
},
Copied!
When using the uploader, users will then 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
Last modified 4mo ago
Copy link