A Fancy Control is a dropdown type field that refers to an existing field in OpenSpecimen. The below fields are supported currently:
Creating a custom event form using the user’s drop-down:
Steps:
Enter form name in the ‘Display Name’ field and click on the ‘Add/Edit Control’ tab
In order to show up the user and date & time in the events list:
|
On saving the form, you will be able to view the user who created the event in the events list page of the specimen
Similarly, you can create forms using sites or storage containers dropdown.
Creating a custom form using the PV Dropdown fancy control:
Follow the same step 1-2 as above.
3. Select ‘Fancy Control’ from the control's list and select ‘PV Dropdown’ from the ‘Fancy Control’ dropdown, enter details as shown in the below example.
Eg: {"defaultValue":"Brain, NOS", "leafValue":true,"attribute":"anatomic_site"} "attribute": "anatomic_site" → The attribute name of the field which can be found using the dropdown manager. Below is the list of all the values for the anatomic site dropdown and within brackets is the attribute name. "defaultValue": "Brain, NOS" → The default value that will be set for this fancy control field. This has been introduced from v7.0 onwards. |
4. Save the form and attached it to any CP or other levels.
Making the dropdown field as multi-select is not supported. |
.